joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405798
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004056b7
test eax, eax
je 0x405817
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4057eb
push 0x10020
lea eax, [esi + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4057ef
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40581a
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4057eb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret

Function at 0x4058cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push esi
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x4214f0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405926
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push str.iLastSvcSuccess
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x230]
mov dword [ebp - 0x18], 0x405a60
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x454], edi
je 0x405966
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40595e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x454], edi
cmp dword [esi + 0x454], edi
jne 0x40596d
mov ecx, esi
call fcn.00405afd
pop edi
pop esi
leave
ret

Function at 0x4064b4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x104
push ebx
lea edi, [esi + 4]
mov dword [esi], vtable.CArmReport.0
push edi
call fcn.004094e0
add esp, 0xc
push edi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406507
mov ebx, 0x104
mov ecx, edi
push str.AdobeARM_
mov edx, ebx
call fcn.00403aa0
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.00403aa0
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4068f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x406913
push 3
pop eax
jmp 0x4069bb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406923
push 2
jmp 0x40690d
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x4069b6
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407f1c
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.004094e0
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x406980
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x406992
push dword [edi]
call fcn.0040788b
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x4069af
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x406930
cmp dword [edi], 0
je 0x4069b6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4069b6
xor eax, eax
jmp 0x4069b9
mov eax, 0xe8
jmp 0x4069b9
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x406a55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov byte [0x427944], 1
push eax
push 0x20019
xor esi, esi
mov dword [0x427948], 1
push esi
push 0x4214f0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406ad7
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x42258c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406ad7
mov eax, dword [0x427948]
cmp dword [ebp - 8], 1
push 2
pop ecx
cmove eax, ecx
mov dword [0x427948], eax
pop esi
leave
ret
Function at 0x406fbe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407003
push esi
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x407002
push 0xc00
mov ecx, esi
call dword [0x41b2b0]
call esi
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004094e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x407040
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x421398
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040787a
leave
ret

Function at 0x4070d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004094e0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004094e0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42273c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x407178
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040ce72
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407192
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret
Function at 0x40cb13
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040c311
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040c2c6
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
invalid

Function at 0x40d1f6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040c2df
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
invalid
invalid
Function at 0x40d209
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040c2df
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
invalid
invalid

Function at 0x40e013
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.0040c311
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040c272
add esp, 0xc
jmp 0x40e279
Function at 0x404260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40426f
pop dword [ebp - 0x4c]
mov eax, 0x40426f
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x283074c
sub dword [ebp - 0x5c], 0xb430c201
mov dword [ebp - 0x58], 0x3a2bb7c4
add dword [ebp - 0x58], 0xf8079481
mov dword [ebp - 0x54], 0x3f7218b3
add dword [ebp - 0x54], 0xcda2b7b
mov dword [ebp - 0x50], 0x8d2312dd
sub dword [ebp - 0x50], 0x8d2312dd
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xada2b3c9
add eax, 0x529d9c4b
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x38af3172
sub dword [ebp - 0x5c], 0xc43cc81c
mov dword [ebp - 0x58], 0x1ef27f17
sub dword [ebp - 0x58], 0xdd861da2
mov dword [ebp - 0x54], 0x84db9c38
add dword [ebp - 0x54], 0xde93d034
mov dword [ebp - 0x50], 0x19bdee6d
sub dword [ebp - 0x50], 0x19bdee6d
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xa449a5d0
sub eax, 0xa409554c
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x38ffc
push 0
call eax
mov ecx, 0x4f90
xor esi, esi
add esi, eax
mov edx, 0x40b800
add edx, dword [ebp - 0x4c]
mov ebx, 0x9cbeba8d
mov dword [ebp - 4], 0x1bc2e680
mov edi, dword [edx]
add dword [ebp - 0x18], 0x493cebb9
sub edi, ebx
xor dword [ebp - 0xc], 0x7689189c
mov dword [esi], edi
mov dword [ebp - 0x1c], 0x1879f3a3
add esi, 4
add edx, 0x5d79e9b5
sub edx, 0x5d79e9b1
loop 0x40437c
add eax, 0xa71967ad
sub eax, 0xa718369a
xor ebx, ebx
add ebx, eax
add eax, 0x3f143d95
add eax, 0xc0ebc270
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10001ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x14c
mov edx, dword [esi + 0x3c]
lea eax, [esi + 0x88]
add eax, edx
lea ecx, [esi + 0x78]
add ecx, edx
cmp word [edx + esi + 4], di
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001e15
cmp dword [ebp + 0x10], 0
lea ecx, [eax + esi]
mov dword [ebp - 8], ecx
ja 0x10001d5c
mov eax, dword [ebp + 0xc]
jb 0x10001d2b
cmp eax, 0xffff
ja 0x10001d5c
movzx edx, ax
xor eax, eax
sub edx, dword [ecx + 0x10]
sbb eax, eax
test eax, eax
ja 0x10001e15
jb 0x10001d48
cmp edx, dword [ecx + 0x14]
jae 0x10001e15
mov eax, dword [ecx + 0x1c]
pop edi
lea eax, [eax + edx*4]
mov eax, dword [eax + esi]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x14], eax
add edx, esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], eax
jbe 0x10001e15
nop word [eax + eax]
mov ebx, dword [edx + eax*4]
add ebx, esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001d90
sub esi, ecx
call fcn.10002740
push 0xeeeeeeee
push 0x7fed7fed
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.10002670
push 0xeeeeeeee
push 0x7fed7fed
push edi
push 2
push esi
push dword [ebp - 0xc]
mov ebx, eax
call fcn.10002670
xor ecx, ecx
or ecx, ebx
cmp dword [ebp + 0xc], eax
jne 0x10001dda
cmp dword [ebp + 0x10], ecx
je 0x10001df1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x18]
jae 0x10001e15
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
jmp 0x10001d80
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100026ca
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
nop word [eax + eax]
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0x14]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002690
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x407467
pop dword [ebp - 0x10]
mov eax, 0x407467
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x466396f9
sub dword [ebp - 0x20], 0xf81151ae
mov dword [ebp - 0x1c], 0x41ccc36b
sub dword [ebp - 0x1c], 0xf997726
mov dword [ebp - 0x18], 0xb4e58050
add dword [ebp - 0x18], 0x9766c3de
mov dword [ebp - 0x14], 0xb2b40cde
add dword [ebp - 0x14], 0x4d4bf322
lea eax, [ebp - 0x20]
push eax
mov eax, 0x8dc51e87
sub eax, 0x8d849e0f
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x6785b93
add dword [ebp - 0x20], 0x6dfa0dc3
mov dword [ebp - 0x1c], 0xc0b70072
add dword [ebp - 0x1c], 0x80b56103
mov dword [ebp - 0x18], 0x393ba388
add dword [ebp - 0x18], 0x2a33c8e4
mov dword [ebp - 0x14], 0x1979a2d5
sub dword [ebp - 0x14], 0x1979a2d5
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x69392acd
sub eax, 0x68f8aa51
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4fc
push 0
call eax
mov ecx, 0x54d7
xor ebx, ebx
add ebx, eax
mov edi, 0xc99b5728
sub edi, 0xc9564328
add edi, dword [ebp - 0x10]
mov edx, 0x33aa7c0b
sub edx, 0x8eabd548
xor dword [ebp - 4], edx
mov esi, dword [edi]
sub dword [ebp - 0xc], 0xb95032e3
sub esi, edx
sub dword [ebp - 8], ebx
mov dword [ebx], esi
sub dword [ebp - 0xc], eax
add ebx, 4
add edi, 0x27c9ac24
sub edi, 0x27c9ac20
loop 0x407580
add eax, 0x1462f
mov ebx, eax
add eax, 0xb255bccc
add eax, 0x4daa4339
mov ecx, 0x42264a69
sub ecx, 0x41e64a69
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401001
Capabilities:
Parse pe header

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x18
cmp word [0x400000], 0x5a4d
mov dword [0x40503c], 1
mov dword [0x405038], 1
mov dword [0x405034], 1
jne 0x401082
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea eax, [ecx + 0x400000]
jne 0x401082
mov ecx, dword [eax + 0x18]
cmp cx, 0x10b
je 0x40105d
cmp cx, 0x20b
je 0x40106c
jmp 0x401082
cmp dword [eax + 0x74], 0xe
jbe 0x401082
cmp dword [eax + 0xe8], 0
jmp 0x40107c
cmp dword [eax + 0x84], 0xe
jbe 0x401082
cmp dword [eax + 0xf8], 0
setne dl
movzx edx, dl
cmp dword [0x405048], 0
mov dword [0x40500c], edx
je 0x40109a
mov dword [esp], 2
jmp 0x4010a1
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40505c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x405044]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403010], 1
jne 0x4010da
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
leave
xor eax, eax
ret

Function at 0x4016f2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
mov eax, dword [0x405054]
mov ecx, dword [0x405050]
add eax, 0xc
cmp ecx, ebx
jle 0x40172b
mov edx, dword [eax]
cmp edi, edx
jb 0x401725
mov esi, dword [eax + 4]
add edx, dword [esi + 8]
cmp edi, edx
jb 0x401818
inc ebx
add eax, 0x14
jmp 0x40170d
mov dword [esp], edi
call sym.___mingw_GetSectionForAddress
mov esi, eax
test eax, eax
jne 0x401749
mov dword [esp + 4], edi
mov dword [esp], str.Address__p_has_no_image_section
jmp 0x40180d
imul ebx, ebx, 0x14
mov eax, dword [0x405054]
xor edx, edx
add eax, ebx
mov dword [eax], edx
mov dword [eax + 0x10], esi
call sym.__GetPEImageBase
mov edx, dword [0x405054]
add eax, dword [esi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
jne 0x4017ab
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401812
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401812
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [ebp - 0x28]
cmove eax, edx
mov edx, dword [ebp - 0x34]
add ebx, dword [0x405054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
inc dword [0x405050]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401df0
Capabilities:
Parse pe header

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x401e15
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x401e15
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
pop ebp
ret

Function at 0x401e19
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
cmp ebx, esi
jae 0x401e4d
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x401e47
add edx, dword [eax + 8]
cmp ecx, edx
jb 0x401e4f
inc ebx
add eax, 0x28
jmp 0x401e35
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000f7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000f7ff
pop dword [ebp - 0x14]
mov eax, 0x1000f7ff
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xf7660201
sub dword [ebp - 0x24], 0xa913bcb6
mov dword [ebp - 0x20], 0x50e32253
add dword [ebp - 0x20], 0xe15029f2
mov dword [ebp - 0x1c], 0xf248211
add dword [ebp - 0x1c], 0x3d27c21d
mov dword [ebp - 0x18], 0xeaeeeeb1
sub dword [ebp - 0x18], 0xeaeeeeb1
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xa8110774
add dword [ebp - 0x24], 0xcc6161e2
mov dword [ebp - 0x20], 0xc777423b
add dword [ebp - 0x20], 0x79f51f3a
mov dword [ebp - 0x1c], 0x26a41577
sub dword [ebp - 0x1c], 0xc334a90b
mov dword [ebp - 0x18], 0x8ea60f78
sub dword [ebp - 0x18], 0x8ea60f78
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xc02402de
sub eax, 0xb02252ca
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0ef
push 0
call eax
mov ecx, 0xe761ab4c
sub ecx, 0xe761640a
xor ebx, ebx
add ebx, eax
mov esi, 0x1002b000
add esi, dword [ebp - 0x14]
mov edi, 0x8346270e
sub edi, 0x914be426
add dword [ebp - 0x10], 0xd00b6eb7
mov edx, dword [esi]
add dword [ebp - 0xc], 0x49fb5c49
sub edx, edi
mov dword [ebx], edx
xor dword [ebp - 8], edi
add ebx, 0x954120df
add ebx, 0x6abedf25
add esi, 0xdbac4f49
sub esi, 0xdbac4f45
loop 0x1000f913
add eax, 0x9da18e4b
sub eax, 0x9da07e70
mov ebx, eax
add eax, 0x5256d37f
sub eax, 0x5256d37a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x40f040]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
lea edx, [esp + 8]
push 0x100
push edx
call fcn.00401cce
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00401b6f
add esp, 0x104
ret