joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c840
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004a5370
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x105c]
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x105c]
push esi
mov esi, dword [esp + 0x1058]
push edi
mov edi, dword [esp + 0x1060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004a53a0
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x49c8b6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.00451c20
cmp eax, esi
jne 0x49c8f0
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.0049c820
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x4e9b8b], bl
call esi
test eax, eax
jne 0x49c921
cmp dword [esp + 0x20], eax
je 0x49c921
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x4e9b8b], 0
test eax, eax
je 0x49c9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x49c9d2
cmp byte [esp + 0x1068], 0
jne 0x49c9ce
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x49c982
mov eax, dword [0x5155a8]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x515568], ecx
mov dword [eax*4 + 0x515528], edx
inc eax
and eax, 0x8000000f
jns 0x49c97b
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5155a8], eax
jmp 0x49c9c4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x515528]
cmp eax, dword [esp + 0x34]
jne 0x49c9b8
mov ecx, dword [esi + 0x515568]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x49c9b8
mov edx, dword [esi + 0x515568]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x49c990
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49c9ce
mov dword [eax], ecx
mov al, bl
jmp 0x49c9d4
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4b43
add esp, 0x1044
ret 0x1c

Function at 0x49e720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x4e9b90
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49e759
push 0x40
push 0x2bc
call fcn.00461310
push eax
push 0x2bd
call fcn.00461310
push eax
mov eax, dword [0x4eacd4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x4e9b90
mov ecx, esi
call fcn.0049d970
pop esi
ret
Function at 0x49fcd0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, eax
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x51c944], eax
mov dword [0x51c948], edx
mov dword [0x51c94c], esi
mov cl, byte [edi]
test cl, cl
je 0x49fd50
lea ebx, [ebx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4d3b58]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4d3b58]
mov dword [0x51c944], eax
mov dword [0x51c948], edx
mov dword [0x51c94c], esi
mov cl, byte [edi]
test cl, cl
jne 0x49fd00
pop edi
pop esi
ret

Function at 0x49fd60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, esi
call fcn.0049fcd0
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420e50
mov eax, esi
call fcn.0049fcd0
xor edi, edi
jmp 0x49fda0
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x51c944]
mov ecx, dword [0x51c94c]
mov eax, ebp
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, esi
mov dword [0x51c944], eax
movzx eax, al
add eax, dword [0x51c948]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51c948], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51c94c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
and ecx, 0xff
xor ecx, ebp
push ebx
push ecx
call fcn.004a8640
inc edi
add esp, 8
cmp edi, 0xa
jl 0x49fda0
mov esi, dword [esp + 0x28]
mov edi, dword [0x51c944]
mov ebp, esi
mov ecx, dword [0x51c94c]
shr ebp, 0x10
mov eax, ebp
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, edi
mov dword [0x51c944], eax
movzx eax, al
add eax, dword [0x51c948]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51c948], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51c94c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, esi
shr edx, 8
xor ecx, edx
shr ecx, 8
and ecx, 0xff
push ebx
push ecx
call fcn.004a8640
mov edi, dword [0x51c944]
mov ecx, dword [0x51c94c]
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
xor edi, dword [esi*4 + 0x4d3b58]
mov edx, ecx
mov eax, edi
mov dword [0x51c944], eax
movzx eax, al
add eax, dword [0x51c948]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51c948], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
or edx, 2
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d3b58]
mov eax, edx
xor eax, 1
imul eax, edx
and eax, 0xff00
xor eax, ebp
shr eax, 8
push ebx
push eax
mov dword [0x51c94c], ecx
call fcn.004a8640
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4b43
add esp, 0x10
ret 0xc
Function at 0x49ff50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp word [0x4f60e8], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x49ffec
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x49ffea
push esi
movsx eax, byte [edi]
mov esi, dword [0x51c944]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x51c94c]
shr esi, 8
xor esi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, esi
mov dword [0x51c944], eax
movzx eax, al
add eax, dword [0x51c948]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51c948], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51c94c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x49ff75
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push ebp
push eax
push ecx
call fcn.004a6e34
add esp, 0x10
pop ebp
ret 0x10
Function at 0x4a1fa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a8640
push edi
push 0x4b
call fcn.004a8640
push edi
push 3
call fcn.004a8640
push edi
push 4
call fcn.004a8640
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a8640
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a8640
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a8640
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a8640
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a8640
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a8640
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00452d60
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a6e34
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x4a2164
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a2160
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.004a6e34
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x4a2164
xor eax, eax
jmp 0x4a2169
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004a4b43
add esp, 0x404
ret 8
Function at 0x4a2510
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a8640
push esi
push 0x4b
call fcn.004a8640
push esi
push 5
call fcn.004a8640
push esi
push 6
call fcn.004a8640
push esi
push 0
call fcn.004a8640
push esi
push 0
call fcn.004a8640
push esi
push 0
call fcn.004a8640
push esi
push 0
call fcn.004a8640
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a8640
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a8640
push esi
push edi
call fcn.004a8640
push esi
push ebx
call fcn.004a8640
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a8640
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a8640
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a8640
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a8640
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a8640
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a8640
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a8640
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a8640
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a8640
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a8640
add esp, 0x30
test ebx, ebx
je 0x4a263c
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.004a6e34
add esp, 0x10
cmp eax, ebx
je 0x4a263c
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x4a4b43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cc3b0]
jne 0x4a4b4d
repz ret
jmp fcn.004a9d7a

Function at 0x4a6098
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4a60ca
call fcn.004a9385
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a9326
add esp, 0x14
or eax, 0xffffffff
jmp 0x4a614b
push esi
call fcn.004ac864
push 0x214
push 1
call fcn.004ad5ca
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4a612e
call fcn.004aca4a
push dword [eax + 0x6c]
push esi
call fcn.004ac8ec
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push esi
push 4
push esi
push 0x4a6024
push dword [ebp + 0xc]
mov dword [esi + 0x54], edi
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, ebx
je 0x4a6125
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a6148
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.004a4cdf
pop ecx
cmp dword [ebp - 4], ebx
je 0x4a6143
push dword [ebp - 4]
call fcn.004a93ab
pop ecx
or eax, 0xffffffff
jmp 0x4a614a
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a65c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x4a6601
cmp dword [ebp + 0x14], edi
je 0x4a6601
cmp ecx, edi
jne 0x4a6608
call fcn.004a9385
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a9326
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a661c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a663d
cmp ebx, 0xffffffff
je 0x4a662c
push ebx
push edi
push ecx
call fcn.004a53a0
add esp, 0xc
cmp esi, edi
je 0x4a65e9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a65e9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a665a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a6661
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a6753
test dword [esi + 0xc], 0x10c
je 0x4a66b6
mov eax, dword [esi + 4]
test eax, eax
je 0x4a66b6
jl 0x4a67b4
mov edi, ebx
cmp ebx, eax
jb 0x4a6687
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a675b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004aeee3
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a674b
cmp ebx, dword [ebp - 0xc]
jb 0x4a6723
cmp dword [ebp - 0xc], 0
je 0x4a66e0
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a66d5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a66dc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a66eb
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a66eb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a6787
push eax
push dword [ebp - 8]
push esi
call fcn.004aeeb6
pop ecx
push eax
call fcn.004aedb9
add esp, 0xc
test eax, eax
je 0x4a67c6
cmp eax, 0xffffffff
je 0x4a67b4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a674b
push esi
call fcn.004ae6d3
pop ecx
cmp eax, 0xffffffff
je 0x4a67b8
cmp dword [ebp - 4], 0
je 0x4a6787
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a6669
mov eax, dword [ebp + 0x14]
jmp 0x4a6603
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a6772
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a53a0
add esp, 0xc
call fcn.004a9385
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a65f9
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a679d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a53a0
add esp, 0xc
call fcn.004a9385
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a65f9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a6603
or dword [esi + 0xc], 0x10
jmp 0x4a67b8
Function at 0x4a921f
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4cc3b0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a53a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4a92fe
test ebx, ebx
jne 0x4a92fe
push 2
call fcn.004b1684
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.004a4b43
add ebp, 0x2a8
leave
ret

Function at 0x4a9326
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x51cdc8]
call fcn.004ac7d1
pop ecx
test eax, eax
je 0x4a933c
pop ebp
jmp eax
push 2
call fcn.004b1684
pop ecx
pop ebp
jmp fcn.004a921f
Function at 0x4ab89b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cc948]
je 0x4ab8b6
inc edi
cmp edi, 0x17
jb 0x4ab8a7
cmp edi, 0x17
jae 0x4aba36
push ebp
push 3
call fcn.004b1fa0
pop ecx
cmp eax, 1
je 0x4aba02
push 3
call fcn.004b1fa0
pop ecx
test eax, eax
jne 0x4ab8ea
cmp dword [0x4cc6a0], 1
je 0x4aba02
cmp ebx, 0xfc
je 0x4aba35
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51d288
push ebp
call fcn.004b0330
add esp, 0xc
test eax, eax
je 0x4ab920
push esi
push esi
push esi
push esi
push esi
call fcn.004a921f
add esp, 0x14
push 0x104
mov esi, 0x51d2a1
push esi
push 0
mov byte [0x51d3a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ab964
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b0330
add esp, 0xc
test eax, eax
je 0x4ab964
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a921f
add esp, 0x14
push esi
call fcn.004b0210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ab9a9
push esi
call fcn.004b0210
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51d59c
push 0x4c245c
sub ecx, eax
push ecx
push eax
call fcn.004b1eed
add esp, 0x14
test eax, eax
je 0x4ab9a9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a921f
add esp, 0x14
jmp 0x4ab9ab
xor esi, esi
push 0x4c2458
push ebx
push ebp
call fcn.004b1e7c
add esp, 0xc
test eax, eax
je 0x4ab9cb
push esi
push esi
push esi
push esi
push esi
call fcn.004a921f
add esp, 0x14
push dword [edi*8 + 0x4cc94c]
push ebx
push ebp
call fcn.004b1e7c
add esp, 0xc
test eax, eax
je 0x4ab9ed
push esi
push esi
push esi
push esi
push esi
call fcn.004a921f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b1d15
add esp, 0xc
jmp 0x4aba35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4aba35
cmp ebp, 0xffffffff
je 0x4aba35
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cc94c]
push dword [esi]
call fcn.004b0210
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4acbfa
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4acc13
push esi
call fcn.004ab543
pop ecx
mov edi, eax
test edi, edi
je 0x4acd7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x51d5a4], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x51d5a8], eax
call esi
push str.FlsFree
push edi
mov dword [0x51d5ac], eax
call esi
cmp dword [0x51d5a4], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x51d5b0], eax
je 0x4acc7c
cmp dword [0x51d5a8], 0
je 0x4acc7c
cmp dword [0x51d5ac], 0
je 0x4acc7c
test eax, eax
jne 0x4acca0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x51d5a8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x51d5a4], 0x4ac840
mov dword [0x51d5ac], esi
mov dword [0x51d5b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cca28], eax
cmp eax, 0xffffffff
je 0x4acd80
push dword [0x51d5a8]
push eax
call esi
test eax, eax
je 0x4acd80
call fcn.004ab84f
push dword [0x51d5a4]
call fcn.004ac759
push dword [0x51d5a8]
mov dword [0x51d5a4], eax
call fcn.004ac759
push dword [0x51d5ac]
mov dword [0x51d5a8], eax
call fcn.004ac759
push dword [0x51d5b0]
mov dword [0x51d5ac], eax
call fcn.004ac759
add esp, 0x10
mov dword [0x51d5b0], eax
call fcn.004aa860
test eax, eax
je 0x4acd7b
push fcn.004aca62
push dword [0x51d5a4]
call fcn.004ac7d1
pop ecx
call eax
mov dword [0x4cca24], eax
cmp eax, 0xffffffff
je 0x4acd7b
push 0x214
push 1
call fcn.004ad5ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4acd7b
push esi
push dword [0x4cca24]
push dword [0x51d5ac]
call fcn.004ac7d1
pop ecx
call eax
test eax, eax
je 0x4acd7b
push 0
push esi
call fcn.004ac8ec
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4acd82
call fcn.004ac8af
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ad300
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4ad311
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ad30e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4ad330
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4ad36a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ad362
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ad36c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4ad352
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4ae6d3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4ae6fc
call fcn.004a9385
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a9326
add esp, 0x14
jmp 0x4ae7f3
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4ae7f3
test al, 0x40
jne 0x4ae7f3
test al, 2
je 0x4ae71e
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4ae7f3
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4ae734
push esi
call fcn.004b15e2
pop ecx
jmp 0x4ae739
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004aeeb6
pop ecx
push eax
call fcn.004aedb9
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4ae7e3
cmp eax, 0xffffffff
je 0x4ae7e3
test byte [esi + 0xc], 0x82
jne 0x4ae7b8
push esi
call fcn.004aeeb6
pop ecx
cmp eax, 0xffffffff
je 0x4ae7a3
push esi
call fcn.004aeeb6
pop ecx
cmp eax, 0xfffffffe
je 0x4ae7a3
push esi
call fcn.004aeeb6
sar eax, 5
push esi
lea edi, [eax*4 + 0x51d880]
call fcn.004aeeb6
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4ae7a8
mov eax, 0x4cd168
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4ae7b8
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4ae7d6
mov eax, dword [esi + 0xc]
test al, 8
je 0x4ae7d6
test eax, 0x400
jne 0x4ae7d6
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4ae7f6
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret