joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xa000d
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40cb2e
sub eax, ecx
sar eax, 1
push esi
mov esi, dword [sym.imp.MSVCR80.dll_fwrite]
je 0x40cb55
push dword [ebp + 0xc]
add eax, eax
push 1
push eax
push dword [ebp + 8]
call esi
add esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push 1
push 4
push eax
call esi
add esp, 0x10
pop esi
leave
ret 8

Function at 0x40dbdb
Capabilities:
Enumerate pe sections

Disassembly:
push 4
mov eax, 0x43f797
call fcn.0043eeff
mov eax, dword [0x4c4254]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
test ecx, ecx
movzx ecx, word [eax + 0x14]
lea ebx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
xor edx, edx
test eax, eax
jbe 0x40dd72
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebp + 0xc]
cmp edi, ecx
jb 0x40dc1d
mov esi, dword [ebx + 8]
add esi, ecx
cmp edi, esi
jb 0x40dc27
inc edx
add ebx, 0x28
cmp edx, eax
jb 0x40dc0a
jmp 0x40dc38
mov esi, dword [ebp + 0x10]
add ecx, dword [ebx + 8]
add edi, esi
cmp edi, ecx
mov edi, dword [ebp + 0xc]
jbe 0x40dc38
mov edx, eax
cmp edx, eax
jae 0x40dd72
xor esi, esi
cmp dword [0x4c5e88], esi
jle 0x40dc63
mov ecx, dword [0x4c5e80]
push esi
call fcn.0040d778
cmp dword [eax], edi
je 0x40dc63
inc esi
cmp esi, dword [0x4c5e88]
jl 0x40dc4a
cmp esi, dword [0x4c5e88]
jne 0x40dd02
cmp dword [0x4c5e84], 0
jne 0x40dc9e
push 0x10
call fcn.0043949a
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp ecx, eax
je 0x40dc95
push 0x18
call fcn.0040d7e9
or dword [ebp - 4], 0xffffffff
mov dword [0x4c5e84], eax
cmp dword [0x4c5e80], 0
jne 0x40dcd3
push 0x10
call fcn.0043949a
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x40dcc8
push 0x18
call fcn.0040d7e9
jmp 0x40dcca
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x4c5e80], eax
push dword [0x4c5e88]
mov ecx, dword [0x4c5e84]
call fcn.0040d778
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [0x4c5e88]
mov ecx, dword [0x4c5e80]
inc dword [0x4c5e88]
push eax
call fcn.0040d778
jmp 0x40dd21
mov ecx, dword [0x4c5e84]
push esi
call fcn.0040d778
mov edi, dword [ebp + 0x10]
cmp dword [eax], edi
jae 0x40dd23
mov ecx, dword [0x4c5e84]
push esi
call fcn.0040d778
mov dword [eax], edi
push 5
mov edi, 0x4027ec
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov edx, 0x4027e8
jne 0x40dd3f
mov edx, 0x4027e4
jmp 0x40dd54
push 6
mov edi, 0x4027dc
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40dd54
mov edx, 0x4027d8
mov edi, dword [ebp + 8]
mov eax, 0x467c50
cmp edi, eax
jb 0x40dd64
xor eax, eax
jmp 0x40dd66
sub eax, edi
push dword [ebp + 0xc]
push edx
push 0x4027d0
push eax
jmp 0x40dd98
mov edi, dword [ebp + 8]
mov eax, 0x467c50
cmp edi, eax
jb 0x40dd82
xor esi, esi
jmp 0x40dd86
mov esi, eax
sub esi, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x402798
call fcn.00415abd
push eax
push esi
push edi
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x14
add edi, eax
mov eax, edi
call fcn.0043efd7
ret 0xc
Function at 0x414a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push edi
lea eax, [ebp - 0xc]
mov edi, ecx
mov ecx, dword [0x4c4254]
push eax
push dword [edi + 0x20]
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
call fcn.00415125
test eax, eax
je 0x414c1c
mov eax, dword [edi + 0x30]
test eax, eax
push ebx
lea ebx, [edi + 4]
mov dword [ebx], 0x20
je 0x414ae5
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x414ad1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x1e]
mov dword [ebx], eax
mov eax, dword [edi + 0x34]
test eax, eax
je 0x414b03
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x414aef
sub eax, edx
sar eax, 1
lea eax, [eax + eax - 2]
add dword [ebx], eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR80.dll_fwrite]
push 1
push 4
push edi
call esi
push dword [ebp + 8]
push 1
push 4
push ebx
call esi
mov ecx, dword [edi + 0x30]
add esp, 0x20
test ecx, ecx
je 0x414b66
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x414b2d
sub eax, ebx
mov ebx, dword [ebp + 8]
push ebx
sar eax, 1
push 1
lea eax, [eax + eax + 2]
push eax
push ecx
call esi
mov eax, dword [edi + 0x30]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x414b52
sub eax, ecx
sar eax, 1
inc eax
mov dword [ebp - 8], eax
jmp 0x414b79
push dword [ebp + 8]
lea eax, [edi + 8]
push 1
push 4
push eax
call esi
mov ebx, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x414bc5
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp + 8], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x414b88
sub eax, dword [ebp + 8]
push ebx
sar eax, 1
push 1
lea eax, [eax + eax + 2]
push eax
push ecx
call esi
mov eax, dword [edi + 0x34]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x414bab
sub eax, ecx
mov ecx, dword [ebp - 8]
sar eax, 1
lea eax, [ecx + eax + 1]
mov dword [ebp - 8], eax
jmp 0x414bd3
push ebx
push 1
lea eax, [edi + 0xc]
push 4
push eax
call esi
add esp, 0x10
test byte [ebp - 8], 1
je 0x414be7
push ebx
push 1
lea eax, [ebp - 4]
push 2
push eax
call esi
add esp, 0x10
push ebx
push 1
lea eax, [edi + 0x10]
push 0x10
push eax
call esi
push ebx
push 1
push dword [edi + 0x24]
push dword [ebp - 0xc]
call esi
mov edi, dword [edi + 0x24]
add esp, 0x20
and edi, 3
je 0x414c1a
push ebx
push 1
push 4
pop eax
sub eax, edi
push eax
lea eax, [ebp - 4]
push eax
call esi
add esp, 0x10
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x415059
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push esi
mov dword [ecx], eax
xor esi, esi
cmp word [eax], 0x5a4d
jne 0x4150a7
mov edx, dword [eax + 0x3c]
cmp edx, esi
jle 0x4150a7
cmp edx, 0xff0
jge 0x4150a7
add eax, edx
xor edx, edx
mov dword [ecx + 0x18], eax
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
mov dword [ecx + 0xc], eax
cmp eax, esi
mov eax, dword [ecx + 0x18]
je 0x4150af
cmp dword [eax], 0x4550
jne 0x4150a4
cmp word [eax + 0x14], 0xe0
je 0x4150bf
mov dword [ecx + 0x18], esi
mov dword [ecx], esi
xor eax, eax
pop esi
ret 4
cmp dword [eax], 0x4550
jne 0x4150a4
cmp word [eax + 0x14], 0xf0
jne 0x4150a4
mov eax, dword [eax + 0x3c]
mov edx, dword [ecx + 0x10]
dec eax
add edx, eax
not eax
and edx, eax
xor eax, eax
mov dword [ecx + 0x14], edx
inc eax
jmp 0x4150ab

Function at 0x415184
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
mov esi, ecx
jne 0x415194
xor eax, eax
jmp 0x4151ef
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x415190
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x415190
push edi
push edi
push edi
push 2
push edi
push dword [esi + 4]
mov dword [esi + 0x10], eax
call fcn.004389e4
cmp eax, edi
mov dword [esi + 8], eax
je 0x415190
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x415190
push eax
mov ecx, esi
call fcn.00415059
pop edi
pop esi
ret 4

Function at 0x4151f4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
mov esi, ecx
jne 0x415204
xor eax, eax
jmp 0x41525e
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x24]
call fcn.0043884d
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x415200
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x415200
push edi
push edi
push edi
push 2
push edi
push dword [esi + 4]
mov dword [esi + 0x10], eax
call fcn.004389e4
cmp eax, edi
mov dword [esi + 8], eax
je 0x415200
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x415200
push eax
mov ecx, esi
call fcn.00415059
pop edi
pop esi
ret 4
Function at 0x4188d6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x8000080
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call fcn.0043884d
mov edi, eax
cmp edi, 0xffffffff
jne 0x418908
push esi
push 0x4040ac
call fcn.00417f4f
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x418936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418936
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x404098
jmp 0x418903
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp + 8], esi
jne 0x41895c
push esi
push 0x40407c
jmp 0x418903
push ebx
push esi
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebx], eax
call edi
cmp dword [ebx], esi
pop ebx
jne 0x418982
push esi
push 0x404064
jmp 0x418903
pop edi
pop esi
leave
ret 0xc
Function at 0x42531e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4c566c], 0
je 0x425353
cmp dword [0x4c5f38], 0xffffffff
lea eax, [ebp - 4]
jne 0x42534c
push 0x402f10
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
jmp 0x42537b
push 0x408394
jmp 0x425340
cmp dword [0x4c5f38], 0xffffffff
jne 0x425363
push 0x402f0c
jmp 0x425368
push 0x408390
push dword [ebp + 8]
call fcn.0040ca53
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4253b8
mov eax, dword [0x4c5f38]
cmp eax, 0xfde9
jne 0x42539e
push dword [ebp - 4]
push 1
push 3
push 0x40838c
jmp 0x4253af
cmp eax, 0xffffffff
jne 0x4253b8
push dword [ebp - 4]
push 1
push 2
push 0x408388
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4310cb
Capabilities:
Accept command line arguments

Disassembly:
push 0x10
mov eax, 0x440370
call fcn.0043ef32
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
mov esi, 0x800
push esi
call fcn.0043949a
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
inc edi
cmp dword [ebp - 0x14], edi
jle 0x431141
push esi
push ebx
push dword [ebp + 8]
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push dword [eax + edi*4]
push ebx
push 0xfde9
call fcn.00438422
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043074b
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x431141
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x431103
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00439525
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.0043efd7
ret 8
Function at 0x431b1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [0x4d996c], esi
mov dword [0x4d9980], eax
je 0x431b6f
push esi
push esi
push esi
push esi
call fcn.0043894d
mov dword [0x4d999c], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x43161d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [0x4d999c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4d999c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 4

Function at 0x4323dd
Capabilities:
Get common file path

Disassembly:
cmp dword [0x4469c4], 0
push esi
mov esi, 0x4d9ba8
je 0x432439
push ebx
push edi
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x432400
mov ebx, dword [sym.imp.MSVCR80.dll_strcat_s]
sub eax, ecx
cmp byte [eax + 0x4d9ba7], 0x5c
je 0x432424
push 0x409d34
push edi
push esi
call ebx
add esp, 0xc
push 0x409d24
push edi
push esi
call ebx
add esp, 0xc
and dword [0x4469c4], 0
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x43243d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push 0x409d38
call fcn.004323dd
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x432577
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_fread]
push edi
push dword [ebp - 8]
xor edi, edi
inc edi
push edi
push 0x5c
push dword [ebx + 4]
call esi
add esp, 0x10
test eax, eax
je 0x4324a2
push dword [ebp - 8]
push edi
push 0x5c
push dword [ebx]
call esi
add esp, 0x10
test eax, eax
je 0x4324a2
mov dword [ebp - 0xc], edi
jmp 0x4324a6
and dword [ebp - 0xc], 0
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4324bf
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4324d8
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4324f1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x43250a
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x43252a
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x4469a4], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x43254a
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x4469a8], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
pop edi
pop esi
pop ebx
je 0x43256d
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x4d9b88], eax
push dword [ebp - 8]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x43257e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
xor eax, eax
push ebx
xor ebx, ebx
cmp dword [0x4469a4], eax
push 0x402f0c
setne cl
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
xor ecx, ecx
cmp dword [0x4469a8], eax
setne cl
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [0x4d9b88], eax
setne cl
mov dword [ebp - 0x10], ecx
call fcn.004323dd
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x4326a0
push esi
mov esi, dword [sym.imp.MSVCR80.dll_fwrite]
push edi
push dword [ebp - 4]
mov edi, dword [ebp + 8]
inc ebx
push ebx
push 0x5c
push dword [edi + 4]
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
push ebx
push 0x5c
push dword [edi]
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [edi + 8]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [edi + 0xc]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [edi + 0x10]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
add edi, 0x14
push ebx
push 4
push edi
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x432692
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x432694
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x436e1e
Capabilities:
Get graphical window text

Disassembly:
call fcn.00434b97
jmp fcn.004367af

Function at 0x438c04
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4469cc], 0
je 0x438c17
pop ebp
jmp dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
jmp fcn.00438a4f

Function at 0x439c18
Capabilities:
Parse pe header

Disassembly:
push 0x10
push 0x442fc8
call fcn.0043f1cc
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x439c88
cmp eax, 0xffffffff
je 0x439c88
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
cmp word [eax], 0x5a4d
jne 0x439c81
mov ecx, dword [eax + 0x3c]
cmp ecx, 0x10000000
jae 0x439c81
lea edx, [ecx + 0x18]
cmp edx, dword [ebp + 0xc]
jae 0x439c81
mov edx, ecx
lea edi, [edx + 0x18]
cmp edi, edx
jb 0x439c81
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
je 0x439c81
mov dword [ebp - 0x1c], esi
jmp 0x439c81
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.0043f211
ret 8

Function at 0x439c93
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov ecx, dword [esp + 0x10]
movzx esi, word [ecx + 6]
movzx eax, word [ecx + 0x14]
xor ebx, ebx
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x439cde
mov edi, dword [esp + 0x18]
test edi, edi
je 0x439cb9
cmp dword [eax + 0x14], edi
ja 0x439cde
mov edx, dword [eax + 0x10]
mov ecx, edi
sub ecx, dword [eax + 0x14]
cmp edx, ecx
ja 0x439cde
mov ecx, dword [eax + 0xc]
cmp dword [esp + 0x14], ecx
jb 0x439cd6
add ecx, edx
cmp dword [esp + 0x14], ecx
jb 0x439ce0
add eax, 0x28
inc ebx
cmp ebx, esi
jb 0x439cb0
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x43eef0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446b10]
jne 0x43eefa
repz ret
jmp fcn.0043f5f7
Function at 0x10001830
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100ec9f4]
test eax, eax
jne 0x1000187d
push str.OPENSSL_ia32cap
mov dword [0x100ec9f4], 1
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
je 0x1000186e
push 0
push 0
push eax
call dword [sym.imp.MSVCR71.dll_strtoul]
add esp, 0xc
or eax, 0x400
mov dword [0x100ec9f0], eax
ret
call fcn.10003680
or eax, 0x400
mov dword [0x100ec9f0], eax
ret

Function at 0x10001880
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 8]
dec eax
je 0x1000189e
sub eax, 2
jne 0x10001896
push 0
call sym.LIBEAY32.dll_ERR_remove_state
add esp, 4
mov eax, 1
ret 0xc
call fcn.10001830
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x10001896
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx]
add eax, ecx
cmp edx, 0x4550
jne 0x10001896
cmp ecx, dword [eax + 0x34]
mov eax, 1
je 0x1000189b
mov dword [0x100ec9f8], eax
ret 0xc

Function at 0x10001990
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.100a1060
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100019db
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100019db
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
lea eax, [ebp + 0xc]
push eax
push ecx
add edx, 0x40
push edx
call dword [sym.imp.MSVCR71.dll_vfprintf]
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x104]
push 0xff
push edx
call dword [sym.imp.MSVCR71.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10001a55
call fcn.100018d0
test eax, eax
je 0x10001a55
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [ebp - 0x104]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100044a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1000457b
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1000457b
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll__errno]
push edi
call ebx
mov dword [eax], 0
mov eax, dword [esi]
test eax, eax
jne 0x1000453a
push 0x244
call dword [sym.imp.MSVCR71.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x100044f5
call ebx
mov dword [eax], 0xc
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
xor eax, eax
mov ecx, 0x91
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x140], eax
mov eax, dword [esi]
cmp dword [eax + 0x140], 0xffffffff
jne 0x1000454c
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [esi], 0
call ebx
pop edi
pop ebx
pop esi
mov dword [eax], 0x16
xor eax, eax
pop ebp
ret
mov edx, dword [eax + 0x140]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100044ee
mov eax, dword [esi]
lea ecx, [eax + 0x2c]
push 0xff
push ecx
add eax, 0x144
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov edx, dword [esi]
add esp, 0xc
pop edi
pop ebx
mov byte [edx + 0x243], 0
mov eax, dword [esi]
pop esi
add eax, 0x144
pop ebp
ret
call dword [sym.imp.MSVCR71.dll__errno]
pop esi
mov dword [eax], 0x16
xor eax, eax
pop ebp
ret