joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e54
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40400c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403eb5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f22
xor eax, eax
push ebp
push 0x403f1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403f04
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404048
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f22
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404003
cmp byte [ebp - 0xd], 0
jne 0x403f64
cmp byte [ebp - 0x12], 0
je 0x404003
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f7d
dec ebx
cmp byte [ebx], 0x2e
je 0x403f8c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f7c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404003
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403fb9
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404003
cmp byte [ebp - 0xd], 0
je 0x404003
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404003
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406468
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406572
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4064bb
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403150
jmp 0x406559
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.0040641c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.0040643c
mov ebx, eax
test esi, esi
je 0x4064e3
dec esi
test esi, esi
jl 0x4064e3
cmp edi, ebx
jne 0x4064c2
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403190
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.004033dc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031d8
cmp eax, 2
jl 0x406559
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406559
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031d8
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406559
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031d8
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.004033dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406579
lea eax, [ebp - 0x110]
call fcn.0040306c
ret

Function at 0x4067a8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406840
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x4067f5
mov eax, dword [ebx + 0x19]
call fcn.0040339c
push eax
push esi
mov eax, edi
call fcn.0040339c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040339c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x40682a
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040339c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004062c4
mov eax, dword [ebp - 8]
call fcn.0040339c
push eax
mov eax, edi
call fcn.0040339c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040339c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406847
lea eax, [ebp - 8]
call fcn.0040306c
ret
Function at 0x4080a0
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x4080af
mov edx, dword [edx + 0x36]
jmp fcn.00403190
mov ecx, dword [edx + 0x18]
jecxz 0x4080a7
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.00403508
pop edx
mov ecx, dword [ebx]
jecxz 0x4080d7
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x408148
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x408154
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x408170
push eax
je 0x408171
call dword [0x41311c]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41311c]
ret

Function at 0x40a2e4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.00409cd4
je 0x40a329
mov eax, ebx
push edx
call fcn.0040a580
pop edx
cmp eax, edx
je 0x40a329
test edx, edx
mov eax, ebx
jne 0x40a308
pop ebx
inc edx
jmp fcn.0040a570
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x40a311
dec edx
push edx
xor edx, edx
call fcn.0040a570
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.004099d4
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040a348
ret
Function at 0x4147b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x4147d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4147d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4147c8
mov eax, 1
add ebx, ebx
jne 0x4147eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4147e0
jne 0x4147fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4147e0
xor ecx, ecx
sub eax, 3
jb 0x414810
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414882
mov ebp, eax
add ebx, ebx
jne 0x41481b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41484c
inc ecx
add ebx, ebx
jne 0x414838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41482d
jne 0x414849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41482d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41486c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41485d
jmp 0x4147ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41486c
add edi, ecx
jmp 0x4147ce
pop esi
mov edi, esi
mov ecx, 0x171
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41488a
cmp byte [edi], 3
jne 0x41488a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41488f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x414907
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1aaf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ac4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4148bc
mov ecx, edi
jns 0x4148eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ac54]
or eax, eax
je 0x414901
mov dword [ebx], eax
add ebx, 4
jmp 0x4148d9
call dword [esi + 0x1ac50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x414938
cmp al, 0xef
ja 0x41492b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41490d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41491a
mov ebp, dword [esi + 0x1ac58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41496c
sub esp, 0xffffff80
jmp 0x404d1a
Function at 0x4002031c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
push edi
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], esi
cmp dword [esi], 0x1423
je 0x40020353
xor eax, eax
jmp 0x4002043c
cmp dword [esi + 0x14], 1
lea ebx, [esi + 0x20]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 4]
mov dword [ebp - 0xf0], ecx
jne 0x400203a9
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xec], 0x10
call fcn.40020e60
push dword [ebp + 8]
call fcn.40046d9f
test byte [esi + 8], 1
je 0x40020399
push edi
mov edx, ebx
lea ecx, [ebp - 0x84]
call fcn.40020e90
lea ecx, [ebp - 0x84]
call fcn.40020fc0
lea eax, [ebp - 0x2c]
jmp 0x400203f7
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xec], 0x14
call fcn.40020b90
push dword [ebp + 8]
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
call fcn.40020c50
test byte [esi + 8], 1
je 0x400203e6
push edi
mov edx, ebx
lea ecx, [ebp - 0xe4]
call fcn.40020c50
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.40020d90
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xe8], eax
xor edx, edx
mov eax, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xe8]
cmp eax, edi
sbb ecx, ecx
and ecx, eax
mov al, byte [edx + esi]
xor byte [ecx + ebx], al
inc edx
lea eax, [ecx + 1]
cmp edx, dword [ebp - 0xec]
jb 0x4002040b
mov esi, dword [ebp - 0xf4]
xor edx, edx
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0xf0]
div edi
xor eax, eax
mov dword [esi + 0x10], edx
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 4

Function at 0x40020b90
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x40027384], 0
push ebx
push esi
mov esi, ecx
jne 0x40020c12
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov ecx, 1
je 0x40020c06
cmp dword [ebp - 8], 0x660
sbb eax, eax
not eax
and ecx, eax
mov eax, dword [ecx*4 + 0x40001524]
mov dword [0x40027384], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x40], 0x67452301
mov dword [esi + 0x44], 0xefcdab89
mov dword [esi + 0x48], 0x98badcfe
mov dword [esi + 0x4c], 0x10325476
mov dword [esi + 0x50], 0xc3d2e1f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40020e60
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x400412d9
Capabilities:
Encode data using xor

Disassembly:
call 0x40041252
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40041282
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x4004129e
xor edx, 0
jmp 0x400412a9
xor edx, edx
jmp 0x400412c0
jmp 0x400412cc
xor eax, eax
push 0x8427d7c0
call 0x400412d9
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40041315
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x400412ee
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x4004132c
add eax, 0
jno 0x40041331
add esi, 0
ret 0x10

Function at 0x4004209a
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x400420bc
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x4004225e
cmp edi, dword [ebp + 0x10]
jb 0x4004225e
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.40041b86
inc edi
jmp 0x40042145
jmp 0x40042152
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.40041b86
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.40041b86
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x400421a6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x4004218a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.400421d4
add dword [eax], 0x39
jle 0x400421b0
sub al, 0xf5
mov ch, al
call fcn.400421e9
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x40043ec1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x40043ed7
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x40043ee8
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.40043f29
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x40046295
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x400461de
add ebx, 0
push ecx
call 0x400461f3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6f33707d
sub ebx, dword [0x6f3568bc]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6f3568ac
call fcn.40041cbd
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.400411cb
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x40046351
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x40046351
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x40046308
mov eax, 1
lock xchg dword [0x6f3568b8], eax
push 0x3dd1fc71
call 0x40046295
push esi
add esp, 8
cmp eax, 0
jne 0x4004627e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x400462a4
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x400462b9
cmp ecx, edx
cmp eax, 0
je 0x400462de
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x400462c8
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.400462f7
dec eax
loope 0x400462fa
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6f3568b8], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x4004632e
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x40046343
jmp 0x4004634e
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x4004623c
Function at 0x4004d3b6
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x4004d68c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6f343530
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6f33a4f6
push 0xffffffffffffffff
call fcn.400445b6
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4004d420
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.4004d438
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x4004d680
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4004d654
Function at 0x4005ce86
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4005cea8
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4005cea8
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4005cea8
ret
cmp word [ebx + 4], 0x14c
jne 0x4005cea8
test word [ebx + 0x16], 2
je 0x4005cea8
test word [ebx + 0x16], 0x100
je 0x4005cea8
cmp word [ebx + 0x18], 0x10b
jne 0x4005cea8
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4005cea8
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4005cf34
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4005cec8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.40043e13
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4005cea8
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4005cf34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4005cea8
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4005cea8
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4005cea8
ret
cmp word [ebx + 4], 0x14c
jne 0x4005cea8
test word [ebx + 0x16], 2
je 0x4005cea8
test word [ebx + 0x16], 0x100
je 0x4005cea8
cmp word [ebx + 0x18], 0x10b
jne 0x4005cea8
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4005cea8
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4005cf34
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4005cec8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.40043e13
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4005cea8
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4005cfeb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4005d044
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4005cfeb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4005cffa
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40462c9d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4005d04b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.40043ec1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4005d0ea
add edi, 4
add eax, 2
dec ecx
jne 0x4005d030
call 0x4005d097
loope 0x4005d08d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4005d0e7
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4005d0f8
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4005d0ab
cmp eax, ecx
ja 0x4005d0ab
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4005d135
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4005d12b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.400443a0
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]