joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45335c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 8], 0
mov esi, dword [ebp + 0xc]
je 0x42aad6
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42aae9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004031d0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00419860
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004198b0
lea ecx, [ebp - 0x230]
call fcn.00402cb0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cb0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], str.Microsoft
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x264], 9
push eax
mov ecx, esi
call fcn.00419a20
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004198b0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cb0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], str.Internet_Explorer
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x264], 0x11
push eax
mov ecx, esi
call fcn.00419a20
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004198b0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cb0
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], str.Quick_Launch
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], 0xc
push eax
mov ecx, esi
call fcn.00419a20
push eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.004198b0
lea ecx, [ebp - 0x260]
call fcn.00402cb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
push esi
push 0x6c
call fcn.0041a900
add esp, 8
test al, al
jne 0x42a9e3
xor al, al
jmp 0x42aabc

Function at 0x42b340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4535a6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42b403
cmp eax, 0x104
ja 0x42b403
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004031d0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x260]
call fcn.00419860
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00419d50
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004198b0
lea ecx, [ebp - 0x248]
call fcn.00402cb0
lea ecx, [ebp - 0x260]
call fcn.00402cb0
lea ecx, [ebp - 0x230]
call fcn.00402cb0
mov al, 1
jmp 0x42b405
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
Function at 0x42b420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4535f6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x42b54f
xor eax, eax
mov dword [ebp - 0x234], 0
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
lea edx, [eax + 2]
mov dword [ebp - 0x220], 7
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b4a0
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00403220
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x264]
call fcn.00419860
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00419d50
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004198b0
lea ecx, [ebp - 0x24c]
call fcn.00402cb0
lea ecx, [ebp - 0x264]
call fcn.00402cb0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x42b54b
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b541
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b56b
push edx
push ecx
call fcn.00432145
add esp, 8
mov al, 1
jmp 0x42b551
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
call fcn.00436c8f
int3

Function at 0x42d260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx]
sub eax, esi
sar eax, 2
test eax, eax
je 0x42d2d1
push ebx
push edi
mov edi, eax
mov ebx, dword [esi]
lea esi, [esi + 4]
movzx edx, al
movzx ecx, bl
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ecx, 8
xor eax, dword [edx*4 + 0x456b08]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
xor eax, dword [edx*4 + 0x456b08]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x456b08]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x456b08]
sub edi, 1
jne 0x42d273
pop edi
pop ebx
pop esi
ret
Function at 0x42ff90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42ffc0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42fffc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42fffc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4300e2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x430024
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x430057
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0043c529
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4300b5
sub eax, 1
je 0x4300b5
sub eax, 2
jne 0x4300e2
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0042f920
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4300d2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043a42c
add esp, 0x10
cmp edi, eax
jne 0x4300e2
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x42ffe7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432107
mov esp, ebp
pop ebp
ret 4

Function at 0x4447a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
Function at 0x4447cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004443ed
push eax
push esi
push dword [ebp + 8]
call fcn.004443a2
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004443ed
push eax
push esi
push dword [ebp + 8]
call fcn.004443a2
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004443dd
invalid
invalid
Function at 0x444a2e
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x444a91
add eax, esi
cmp dword [eax], ebx
je 0x444a91
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x444a8c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x444a76
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x444a7e
cmp edx, ebx
jne 0x444bcc
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x444a4d
add eax, dword [eax + 4]
jmp 0x444a3a
mov dword [ebp + 0xc], ebx
jmp 0x444a9c
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x444ab4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x444ad2
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x444b30
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x444b17
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x444b20
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x444b2a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x444b0c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x444a96
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x444b7d
dec eax
je 0x444b74
sub eax, 3
je 0x444b6b
mov dword [ebp - 4], 0x40
jmp 0x444b9a
mov dword [ebp - 4], 4
jmp 0x444b80
mov dword [ebp - 4], 0x20
jmp 0x444b80
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x444bcc
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x444b4c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004443dd
lds esp, [ecx + 0x75ff51ad]
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x444bd8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401010
sub eax, edx
mov dword [esp + 4], eax
call fcn.00404316
add eax, 0x20
push eax
push 1
lea eax, [esp + 0xc]
push 4
push eax
call fcn.00404ad0
add esp, 0x10
cmp eax, 1
jne 0x401074
call fcn.00404316
mov ecx, dword [esp + 4]
add eax, 0x20
push eax
push ecx
push 1
push esi
call fcn.00404ad0
add esp, 0x10
cmp dword [esp + 4], eax
jne 0x401074
call fcn.00404316
add eax, 0x20
push eax
call fcn.00404655
add esp, 4
mov eax, 1
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret
Function at 0x403aa0
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
sub esp, 0xa4c
mov eax, dword [0x4173f4]
xor eax, esp
mov dword [esp + 0xa48], eax
xor eax, eax
push 0x3c
push eax
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x54], ax
call fcn.00409850
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
lea eax, [esp + 0x254]
push edi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0xff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x403b27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xa48]
xor ecx, esp
call fcn.00404057
add esp, 0xa4c
ret 4
mov eax, dword [esi + 4]
test eax, eax
jne 0x403b33
mov eax, dword [0x418f28]
mov edx, dword [esp + 0x24]
push 0
push 0
push 3
push 0
push 0
push edx
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 8], eax
test eax, eax
je 0x403b0a
push 1
push 0
push 0x4184a0
push 0
push 0
lea edx, [esp + 0x25c]
push edx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi], eax
test eax, eax
je 0x403b0a
mov ecx, dword [esp + 0xa50]
push ecx
push ebx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x403b0a
lea edx, [esp + 8]
push edx
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esp]
mov ecx, dword [esp + 0xa48]
sub eax, 0xc8
neg eax
sbb eax, eax
xor ecx, esp
and eax, 0x2f78
call fcn.00404057
add esp, 0xa4c
ret 4
Function at 0x403c00
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
sub esp, 0xa4c
mov eax, dword [0x4173f4]
xor eax, esp
mov dword [esp + 0xa48], eax
xor eax, eax
push 0x3c
push eax
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x54], ax
call fcn.00409850
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
lea eax, [esp + 0x254]
push edi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0xff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x403c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xa48]
xor ecx, esp
call fcn.00404057
add esp, 0xa4c
ret 4
mov eax, dword [esi + 4]
test eax, eax
jne 0x403c93
mov eax, dword [0x418f28]
mov edx, dword [esp + 0x24]
push 0
push 0
push 3
push 0
push 0
push edx
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 8], eax
test eax, eax
je 0x403c6a
push 1
push 0
push 0x4184a8
push 0
push 0
lea edx, [esp + 0x25c]
push edx
push 0x415bb8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi], eax
test eax, eax
je 0x403c6a
mov ecx, dword [esp + 0xa50]
push ecx
push ebx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x403c6a
lea edx, [esp + 8]
push edx
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esp]
mov ecx, dword [esp + 0xa48]
sub eax, 0xc8
neg eax
sbb eax, eax
xor ecx, esp
and eax, 0x2f78
call fcn.00404057
add esp, 0xa4c
ret 4

Function at 0x403d60
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x14], esi
jmp 0x403d80
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x1000]
cmp eax, dword [ecx]
ja 0x403db7
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push 0x1000
push edi
push eax
call ebx
test eax, eax
je 0x403db1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403db7
add edi, eax
add esi, eax
jmp 0x403d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x403dc1
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xffffffda
pop ebp
add eax, 0x26
pop ebx
ret 8

Function at 0x404057
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4173f4]
jne 0x404061
repz ret
jmp fcn.00405eb5
Function at 0x40d797
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a99f
and dword [ebp - 4], 0
cmp dword [0x418e3c], 0
mov ebx, eax
jne 0x40d848
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d8f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d8f9
push eax
call fcn.0040a92d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418e3c], eax
call esi
push eax
call fcn.0040a92d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418e40], eax
call esi
push eax
call fcn.0040a92d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418e44], eax
call esi
push eax
call fcn.0040a92d
pop ecx
mov dword [0x418e4c], eax
test eax, eax
je 0x40d848
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a92d
pop ecx
mov dword [0x418e48], eax
mov eax, dword [0x418e48]
cmp eax, ebx
je 0x40d8a0
cmp dword [0x418e4c], ebx
je 0x40d8a0
push eax
call fcn.0040a9a8
push dword [0x418e4c]
mov esi, eax
call fcn.0040a9a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d8a0
test edi, edi
je 0x40d8a0
call esi
test eax, eax
je 0x40d897
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d897
test byte [ebp - 0xc], 1
jne 0x40d8a0
or dword [ebp + 0x10], 0x200000
jmp 0x40d8d9
mov eax, dword [0x418e40]
cmp eax, ebx
je 0x40d8d9
push eax
call fcn.0040a9a8
pop ecx
test eax, eax
je 0x40d8d9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d8d9
mov eax, dword [0x418e44]
cmp eax, ebx
je 0x40d8d9
push eax
call fcn.0040a9a8
pop ecx
test eax, eax
je 0x40d8d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418e3c]
call fcn.0040a9a8
pop ecx
test eax, eax
je 0x40d8f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d8fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1272027
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x129b094]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.01282aa0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x12720d9
push edi
mov edi, 0x1296bb8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1272072
sub eax, edx
sar eax, 1
je 0x12720d8
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [fcn.01293124]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01280f0d
push 0x1296bb0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.012809b4
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x12720d8
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0128122a
push dword [ebp - 0x78]
call fcn.01280c62
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.01280738
add ebp, 0x198
leave
ret

Function at 0x1272266
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x1296bb0
mov esi, 0x129dde8
lea eax, [ebp - 4]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.012809b4
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x1272369
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.0128169f
push dword [ebp - 4]
call fcn.012818c1
mov edi, eax
push edi
call fcn.0128192f
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.0128169f
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0128122a
add esp, 0x30
cmp edi, eax
jne 0x127234a
call dword [0x129312c]
push eax
call fcn.012815e1
pop ecx
call fcn.012815f3
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x1298d90]
fmul qword [0x1298d88]
fadd qword [0x1298d80]
call fcn.01283340
cmp edi, eax
jl 0x127234a
sub ebx, eax
push eax
add ebx, edi
call fcn.01272224
push dword [ebp - 4]
call fcn.01280c62
pop ecx
pop ecx
push esi
call dword [0x129311c]
push 0x12968c4
lea eax, [ebp - 4]
push esi
push eax
call fcn.012809b4
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x1272368
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.01280b69
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x1272359
push dword [ebp - 4]
call fcn.01280c62
pop ecx
cmp dword [ebp - 8], 0
je 0x1272368
push dword [ebp - 8]
call fcn.0128072d
pop ecx
pop ebx
pop edi
pop esi
leave
ret