joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005dcb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
lea eax, [esp + 4]
push eax
push str.SystemCurrentControlSetControl
xor esi, esi
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005dd37
push 0x7fe
lea ecx, [esp + 0x16]
push esi
push ecx
mov word [esp + 0x1c], si
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push str.SystemStartOptions
push edx
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1005dd4f
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.10059076
add esp, 0x810
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ntdll.dll__wcslwr]
mov esi, dword [sym.imp.ntdll.dll_wcsstr]
lea eax, [esp + 0x14]
push str.winpe
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1005dd91
lea ecx, [esp + 0x10]
push str..wim
push ecx
call esi
add esp, 8
test eax, eax
je 0x1005dd37
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
mov eax, 1
call fcn.10059076
add esp, 0x810
ret
Function at 0x1005f800
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x1005f862
cmp dword [esp + 8], 0
jne 0x1005f862
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.10059076
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.10059076
add esp, 0x118
ret
Function at 0x407190
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4071cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4071cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4071cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4071cf
cmp dword [ecx + 0x74], 0xe
jbe 0x4071cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40cd23
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40cdc0
push ebx
push esi
call fcn.0040ccec
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040cc80
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40cd6d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cdbf
push edi
push eax
call fcn.0040d940
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40cd8d
call fcn.0040b7e1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cdbe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040cc80
add esp, 0x20
test eax, eax
jne 0x40cdac
push edi
call fcn.0040b7e1
jmp 0x40cdb4
push ebx
call fcn.0040b7e1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40e0bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ac228
push 0x4ac220
push str.FlsAlloc
push 0x1f
call fcn.0040df7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e0f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
jmp 0x40e0f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e13b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ac238
push 0x4ac230
push str.FlsGetValue
push 0x21
call fcn.0040df7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e172
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e17a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ac240
push 0x4ac238
push str.FlsSetValue
push 0x22
call fcn.0040df7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e1b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41363d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41363d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403203
pop dword [ebp - 0x50]
mov eax, 0x403203
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x7b71b470
add dword [ebp - 0x60], 0xd2e090db
mov dword [ebp - 0x5c], 0xf18f2d95
add dword [ebp - 0x5c], 0x40a41eb0
mov dword [ebp - 0x58], 0x3ef6b7e7
add dword [ebp - 0x58], 0xd558c47
mov dword [ebp - 0x54], 0xabe3f272
add dword [ebp - 0x54], 0x541c0d8e
lea eax, [ebp - 0x60]
push eax
mov eax, 0x5e879624
add eax, 0xa1b8ea68
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xaf09930c
sub dword [ebp - 0x60], 0x3a9729b6
mov dword [ebp - 0x5c], 0x15807e54
add dword [ebp - 0x5c], 0x2bebe321
mov dword [ebp - 0x58], 0xde84747e
add dword [ebp - 0x58], 0x84eaf7ee
mov dword [ebp - 0x54], 0xb1396858
sub dword [ebp - 0x54], 0xb1396858
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a619
push 0
call eax
mov ecx, 0x5726
mov ebx, eax
mov edi, 0x47f013ac
add edi, 0xb850fc54
add edi, dword [ebp - 0x50]
mov edx, 0x43184199
add edx, 0x9183f05d
sub dword [ebp - 0x18], esi
mov esi, dword [edi]
xor esi, edx
add dword [ebp - 0x28], 0x64099228
mov dword [ebx], esi
add dword [ebp - 0x30], 0xbd3939c3
add ebx, 4
add edi, 0x63aac3a7
add edi, 0x9c553c5d
loop 0x403315
add eax, 0x14f6b
xor ebx, ebx
add ebx, eax
add eax, 0xae7eb7f1
add eax, 0x51814814
mov ecx, 0x349141da
sub ecx, 0x345141da
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40f01e
Capabilities:
Encode data using xor

Disassembly:
and al, 0x14
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40759f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
salc
xchg edx, eax
in eax, dx
das
jecxz 0x40f083
pop esp
sbb eax, 0x4a42e7cc
xor al, byte [eax - 0x738ad504]
xlatb
int1
imul edx, esp, 0x5e1ad6a1
test eax, 0x70c66dd1
lodsb al, byte [esi]
xor byte [ecx + 0x4efafbc5], ch
hlt
pop esp
mov edx, 0x659c06a4
cmpsb byte [esi], byte es:[edi]
popal
test eax, 0xb65ddb7
cld
jle 0x40f0a8
hlt
lds ebp, [esi + 0x5b638c9c]
dec eax
fdivrp st(3)
add dl, byte [edx + 0x1e]
mov dword [esi], ecx
sbb al, 0x4c
popal
sbb edx, dword [edx - 0x505a090]
jo 0x40f11c
cli
cli
pop ecx
xor ecx, dword [eax]
xchg ecx, eax
dec edi
mov esp, 0x346b4e18
or al, 0x6e
mov bh, 0x26
xchg edi, eax
sub byte [edi + 0x973395c], ch
jns 0x40f0bb
cmp al, 0xdb
xor dword [edx - 0x2e9fb307], ebp
inc esi
sbb eax, dword [ecx - 0x32]
cwde
fld st(3)
add dword [edx + ecx*2], eax
and byte [ebx - 0x3a], ah
test byte [esi], dh
pop esp
xor eax, 0x1cfcdf33
push ds
xchg ecx, eax
mov word [ecx], ss
or eax, 0x8813ea64
jle 0x40f151
adc esi, edx
xchg esi, eax
jmp 0x407581
popal
inc esp
scasb al, byte es:[edi]
call dword [esi - 0x20]
insb byte es:[edi], dx
xor byte [ecx], al
cmp dword [esi + 0x29], edi
and al, 0x9c
invalid
in eax, 0x26
cmpsb byte [esi], byte es:[edi]
push eax
in al, dx
aas
lodsd eax, dword [esi]
out 0x48, al
and dword [esi + 0x6e], 0xffffff80
dec esp
retf
Function at 0x438b9e
Capabilities:
Encode data using xor

Disassembly:
push esp
and eax, 0xb2d6f417
pop esp
pop ds
enter 0x49ef, 0x23
retf 0x483a
jo 0x438b27
out dx, al
pop ebx
sbb dword [ebp + 0x4bf431b6], ebx
mov al, 0x38
sbb dword [edi + 0x20], ebp
sbb al, 0x8e
xor dword [ecx + esi*2 + 0x48], eax
in eax, dx
dec esi
movsd dword es:[edi], dword [esi]
or dh, byte [0x31dd34f0]
xor byte [ebp + 0x604ae8d5], 0xe8
add dword [ebx - 0x12fb7c7], eax
pop es
enter 0x6c72, 0xffffffffffffffc4
sub edx, edi
out dx, al
mov eax, 0x6f3a7489
rcr ch, 1
in al, dx
enter 0x1551, 0x34
and ebp, dword [ecx + 0x7f]
je 0x438c2d
ljmp 0x6f74:0xbea9159
push ecx
pop ebp
cmp esp, edi
sbb al, 0xf
inc ebx
mov edx, 0xc4ea2597
test dword [ebx - 0x1c], edi
adc byte [edi], 0x25
xor al, 9
mov dl, 0x9c
aam 0x3f
push esp
loop 0x438c12
cmp esp, eax
stosd dword es:[edi], eax
adc eax, 0x597919ce
jns 0x438c7e
jp 0x438c23
das
dec ecx
inc esp
sub al, 0x68
out 0xb8, eax
fist word [ecx + 0x3430a20d]
push ss
mov eax, 0xa20d91df
xor byte [esi + edx], dh
aam 0x6b
mov eax, ss
scasb al, byte es:[edi]
push eax
adc al, 0x72
fdivr st(2), st(0)
adc eax, 0x45d0f629
and byte [ebp - 0x6f], dh
or ch, cl
and al, 0x28
add ebx, dword [eax + 0x1b]
jb 0x438c00
or dl, ch
movsd dword es:[edi], dword [esi]
in al, 0x54
mov esp, 0x5e6077a0
out 0x6d, al
jbe 0x438c95
int3
inc esp
mov esi, 0xd3bddaf0
popfd
mov ecx, 0xdf141c74
sbb eax, 0x220b8910
sbb dword [edx + edi*4], 0xc450fa86
salc
stosd dword es:[edi], eax
pushal
add byte [esi], dl
adc edi, esi
dec ebx
ljmp 0x1383
invalid
Function at 0x4969ce
Capabilities:
Authenticate hmac

Disassembly:
mov byte [esi], cl
mov bh, 0x99
push 0xffffffffffffff8b
xchg ebp, eax
test al, 0xf3
mov word [edx], ss
Function at 0x4bcb35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c6348
cmp edx, dword [eax]
je 0x4bcb57
add eax, 8
inc ecx
cmp eax, 0x4c63d8
jl 0x4bcb48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c6348]
jne 0x4bcc85
mov eax, dword [0x4caccc]
cmp eax, 1
je 0x4bcc5f
test eax, eax
jne 0x4bcb88
cmp dword [0x4c6274], 1
je 0x4bcc5f
cmp edx, 0xfc
je 0x4bcc85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bcbbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bd520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd9b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bcc02
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd9b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1cac
push edi
call fcn.004bf880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bd520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd530
lea eax, [ebp - 0xa0]
push 0x4c1c8c
push eax
call fcn.004bd530
push dword [esi + 0x4c634c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bf7f4
add esp, 0x2c
pop edi
jmp 0x4bcc85
lea eax, [ebp + 8]
lea esi, [esi + 0x4c634c]
push 0
push eax
push dword [esi]
call fcn.004bd9b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x403203
pop dword [ebp - 0x48]
mov eax, 0x583d2021
sub eax, 0x57fcee1e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb19352eb
sub dword [ebp - 0x58], 0x63410da0
mov dword [ebp - 0x54], 0x9093492d
sub dword [ebp - 0x54], 0x5e5ffce8
mov dword [ebp - 0x50], 0x9440dd94
sub dword [ebp - 0x50], 0x47f49966
mov dword [ebp - 0x4c], 0xd881e801
sub dword [ebp - 0x4c], 0xd881e801
lea eax, [ebp - 0x58]
push eax
mov eax, 0x8321aec8
add eax, 0x7d1ed1c4
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x875e8b9a
add dword [ebp - 0x58], 0xed13ddbc
mov dword [ebp - 0x54], 0x501baf62
sub dword [ebp - 0x54], 0xeaf4ded
mov dword [ebp - 0x50], 0x6a022815
add dword [ebp - 0x50], 0xf96d4457
mov dword [ebp - 0x4c], 0xfbcc46a2
add dword [ebp - 0x4c], 0x433b95e
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x28563672
sub eax, 0x2815b59e
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3add5
push 0
call eax
mov ecx, 0x8efe6a6
sub ecx, 0x8ef8d91
xor esi, esi
add esi, eax
mov edx, 0xe716ecc8
sub edx, 0xe6d5dcc8
add edx, dword [ebp - 0x48]
mov edi, 0xc465d5de
sub edi, 0xad2e6cca
mov dword [ebp - 0x38], 0x7a196135
mov ebx, dword [edx]
xor dword [ebp - 0x38], 0xae86e48e
sub ebx, edi
xor dword [ebp - 0x28], edi
mov dword [esi], ebx
mov dword [ebp - 0x40], 0x2f553fd
add esi, 0x100871da
add esi, 0xeff78e2a
add edx, 0x79ede85a
sub edx, 0x79ede856
loop 0x403327
add eax, 0x55a9be0c
add eax, 0xaa57991b
mov ebx, eax
add eax, 0x17005cb0
sub eax, 0x17005cab
mov ecx, 0xc834f0d2
add ecx, 0x380b0f2e
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x409d7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x409d89
pop dword [ebp - 0x38]
mov eax, 0xe6bf5cdc
sub eax, 0xe67ebf53
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3cdb8
push 0
mov eax, 0xe00e43cc
sub eax, 0xdfcd62ac
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x5fe29f0d
add ecx, 0xa01db6cd
mov esi, eax
mov edx, 0xeb80b97
sub edx, 0xe769397
add edx, dword [ebp - 0x38]
mov edi, 0xe1feaaf7
add edi, 0xe40b3886
add dword [ebp - 0x18], ecx
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0x65a1c8a3
sub ebx, edi
mov dword [ebp - 0x28], 0x188432df
mov dword [esi], ebx
xor dword [ebp - 0x28], 0x19508213
add esi, 4
add edx, 0x6430105f
add edx, 0x9bcfefa5
loop 0x409de8
add eax, 0x3df2b916
add eax, 0xc20e9125
xor ebx, ebx
add ebx, eax
add eax, 0x33503dbc
sub eax, 0x33503db7
mov ecx, 0x29b77fa
sub ecx, 0x25b77fa
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4031b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call edi
lea ebx, [esi + 0x48]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
add esi, 0x68
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 8
call fcn.004034b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x403214
cmp ecx, eax
je 0x40321a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x28], ecx
jne 0x403254
xor ebx, ebx
call edi
mov edx, 8
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x20], ebx
push eax
mov ebx, esi
mov dword [esp + 0x1c], ecx
call fcn.00403390
mov ebx, dword [esp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov ebx, dword [esp + 0x10]
sub eax, ebx
cmp eax, 0x1f4
jbe 0x403291
mov ecx, dword [0x63dd80]
mov esi, dword [ecx]
call edi
mov edx, dword [0x63dd80]
sub eax, ebx
push eax
mov eax, dword [esi]
push str.Function_execution_took__d
push str.SetTimedOutExchange
push 2
push edx
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret