joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413fa1
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x433053
call fcn.00427c2c
sub esp, 0x1c8
push ebx
mov ebx, ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040237b
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x41400c
push dword [esi + 0xc]
lea ecx, [ebp - 0x3c]
push dword [esi + 8]
call fcn.00413e2c
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00413ebb
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004024f9
push dword [ebp - 0x54]
call fcn.00401dfb
push dword [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00401dfb
pop ecx
pop ecx
push edi
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.004027d0
mov dword [ebp + 0x10], eax
inc eax
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00408b75
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*2 + 2]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004023bf
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00413f01
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.00413f01
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402432
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00402670
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.004026d7
lea ecx, [ebp - 0x18]
call fcn.00402670
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004026d7
lea ecx, [ebp - 0x18]
call fcn.00402670
cmp byte [esi + 1], 0
je 0x4140d0
mov edx, 0x3f4
lea ecx, [ebp - 0x18]
call fcn.00412f8b
push 0x435048
lea ecx, [ebp - 0x18]
call fcn.0040270c
push 0
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x74]
call fcn.00405c09
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040270c
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.00406525
mov edx, edi
lea ecx, [ebp - 0x3c]
call fcn.00401000
mov eax, dword [eax]
push 0x110
push 0x160
lea ecx, [ebp - 0x1d4]
push ecx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.00401dfb
pop ecx
test edi, edi
pop edi
je 0x41413d
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x1d4]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x18]
call fcn.00401dfb
push dword [ebp - 0x30]
call fcn.00401dfb
push dword [ebp - 0x48]
call fcn.00401dfb
push dword [ebp - 0x24]
call fcn.00401dfb
mov ecx, dword [ebp - 0xc]
add esp, 0x10
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x415310
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x4330bd
call fcn.00427c2c
push ecx
or eax, 0xffffffff
push ebx
xor ebx, ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x38]
mov dword [ebp - 0x10], esi
mov word [esi], bx
mov byte [esi + 2], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.0040237b
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.0040237b
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.0040237b
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.00414dfa
lea ecx, [esi + 0x9c]
call fcn.004265d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4169b6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
cmp byte [0x43cea8], 0
push esi
mov esi, edx
jne 0x416a10
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.0040292f
mov eax, dword [eax]
push 0x4010
push 0x160
lea ecx, [ebp - 0x16c]
push ecx
or esi, 0x80
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00401dfb
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x168]
mov dword [eax], ecx
mov eax, esi
jmp 0x416a3f
mov eax, dword [0x43d10c]
test eax, eax
je 0x416a34
push 0x4010
push 0x2b4
lea edx, [ebp - 0x2c0]
push edx
or esi, 0x80
push esi
push ecx
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2bc]
mov dword [ecx], edx
pop esi
leave
ret 4
Function at 0x41c9f9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4336db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 4], 0x43487c
mov dword [esi + 8], 0x43487c
mov dword [esi + 0xc], 0x434e10
mov dword [esi + 0x10], 0x43487c
mov dword [esi + 0x14], 0x43487c
mov dword [esi + 0x18], 0x434e10
mov dword [esi + 0x1c], ebx
mov eax, 0x40000
mov dword [esp + 8], esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x58], eax
push 0x40f703
push 0x40792c
push 4
push 4
lea eax, [esi + 0xa0]
push eax
mov dword [esp + 0x28], ebx
mov dword [esi], 0x4354b4
mov dword [esi + 4], 0x4354a4
mov dword [esi + 8], 0x435494
mov dword [esi + 0xc], 0x435480
mov dword [esi + 0x10], 0x435470
mov dword [esi + 0x14], 0x435460
mov dword [esi + 0x18], 0x43544c
call fcn.004297d6
mov ecx, dword [esp + 0xc]
mov word [esi + 0xb0], bx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x420840
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x364
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42086a
cmp dword [esp + 4], 6
jne 0x42086a
cmp dword [esp + 8], 0
je 0x420894
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420894
push 0xc00
call eax
test eax, eax
jne 0x42093e
push 0x106
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42093e
cmp eax, 0x104
ja 0x42093e
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x92], 0x5c
je 0x4208e1
mov ecx, 0x5c
mov word [esp + eax*2 + 0x94], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x42093d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ebp, [esp + eax*2 + 0xa4]
mov ecx, ebp
mov al, byte [esi]
movzx edx, al
mov word [ecx], dx
inc esi
add ecx, 2
test al, al
jne 0x420908
push str..dll
lea eax, [esp + 0xa8]
push eax
call edi
push 8
push 0
lea ecx, [esp + 0xac]
push ecx
call ebx
cmp byte [esi], 0
jne 0x420906
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x364
ret
Function at 0x424da7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
xor ebx, ebx
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov ecx, 1
push edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
cmp eax, 0x20
jbe 0x424e0b
mov eax, 0x20
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push ebp
mov dword [esi + 0x58], ebx
cmp eax, dword [esi + 0x20]
je 0x424e69
lea ebp, [esi + 0xd0]
mov dword [esp + 0x10], 0x20
mov edx, dword [ebp]
cmp edx, ebx
je 0x424e49
mov dword [ebp], ebx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + 4]
mov edi, dword [edx]
call eax
mov edx, edi
cmp edi, ebx
jne 0x424e31
mov ecx, 1
add ebp, 0x28
sub dword [esp + 0x10], ecx
jne 0x424e27
mov edx, dword [esi + 0x5c]
cmp edx, ebx
je 0x424e64
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
call eax
mov dword [esi + 0x5c], ebx
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov eax, dword [esi + 0x58]
lea ecx, [eax + eax*4 + 0x19]
lea ebp, [esi + ecx*8]
inc eax
lea ecx, [ebp + 0x20]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x58], eax
cmp dword [ecx], ebx
je 0x424eb2
call fcn.00426490
jmp 0x424eb7
call fcn.004264f0
cmp eax, ebx
jne 0x424ed3
cmp dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0x1c]
je 0x424eca
call fcn.00426490
jmp 0x424ecf
call fcn.004264f0
cmp eax, ebx
je 0x424ed9
mov edi, eax
cmp eax, ebx
jne 0x424f0b
lea ecx, [ebp + 0x20]
call fcn.00426470
mov edi, eax
cmp edi, ebx
jne 0x424f0d
lea ecx, [ebp + 0x1c]
call fcn.00426470
mov edi, eax
cmp edi, ebx
jne 0x424f0d
push ebp
call fcn.00424ab0
mov edi, eax
cmp edi, ebx
je 0x424f0d
mov eax, esi
mov dword [esi + 0x44], ebx
call fcn.00423e00
cmp edi, ebx
pop ebp
jle 0x424f1c
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
je 0x424f23
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], ebx
jne 0x424f35
cmp dword [esi + 0x40], ebx
jne 0x424f35
cmp dword [esi + 0x3c], ebx
jne 0x424f35
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4253b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
push 0x98
xor ebp, ebp
lea eax, [esi + 0x110]
push ebp
push eax
call fcn.00427c50
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebp
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x42540e
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebp
mov dword [esi + 8], ecx
mov edx, pe_nt_image_headers32
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
xor edx, edx
lea eax, [ecx + 2]
nop
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x425450
lea edx, [esi + 0x9fc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
jmp 0x425482
xor ebp, ebp
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add ebx, 2
lea ecx, [ecx]
movzx eax, word [ebp + 0x435980]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
movzx ecx, cx
xor eax, eax
jmp 0x4254b0
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4254b0
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x425490
mov eax, dword [esp + 0xc]
sub dword [esp + 0x10], 0xffffff80
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x80
jb 0x425480
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
lea ebx, [ebx]
mov eax, edi
mov edx, 0x10
jmp 0x425500
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x425500
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x4254f0
pop edi
pop ebp
mov dword [esi + 0x3b8], 0x40070000
pop ebx
add esp, 8
ret
Function at 0x4270c0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x43c0f4]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4276d0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x427713
cmp eax, 0x40
je 0x427705
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call fcn.00427c50
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call fcn.00427c50
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x427758
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x42a671
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x42a6a2
call fcn.0042d67e
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0042d874
add esp, 0x14
or eax, 0xffffffff
jmp 0x42a71e
push esi
call fcn.0042b8e4
push 0x214
push 1
call fcn.0042da40
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x42a706
call fcn.0042baac
push dword [eax + 0x6c]
push esi
call fcn.0042b968
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov dword [esi + 0x54], edi
cmp eax, ebx
jne 0x42a6e3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42a5fa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x42a71d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.00429a3a
pop ecx
cmp dword [ebp - 4], ebx
je 0x42a71b
push dword [ebp - 4]
call fcn.0042d6a4
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x42aa8d
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x43a700
call fcn.0042eb9c
push dword [0x43c100]
call fcn.0042eb62
pop ecx
mov dword [0x43c100], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42aa82
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x42a929
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x43f3bc], edi
mov dword [0x43f3c4], eax
mov dword [0x43f3c8], edx
mov dword [0x43f3cc], esi
mov dword [0x43f3c0], ecx
call fcn.0042a86e
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0042d100
pop ecx
test eax, eax
jne 0x42a97a
push 0x1c
call fcn.0042a845
pop ecx
call fcn.0042bc7f
test eax, eax
jne 0x42a98b
push 0x10
call fcn.0042a845
pop ecx
mov dword [ebp - 4], ebx
call fcn.0042e8c7
test eax, eax
jge 0x42a99f
push 0x1b
call fcn.0042d184
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x441ebc], eax
call fcn.0042e790
mov dword [0x43f23c], eax
call fcn.0042e6a1
test eax, eax
jge 0x42a9c5
push 8
call fcn.0042d184
pop ecx
call fcn.0042e367
test eax, eax
jge 0x42a9d6
push 9
call fcn.0042d184
pop ecx
push ebx
call fcn.0042d29c
pop ecx
test eax, eax
je 0x42a9e8
push eax
call fcn.0042d184
pop ecx
call fcn.0042e308
test byte [ebp - 0xd4], bl
je 0x42a9fe
movzx ecx, word [ebp - 0xd0]
jmp 0x42aa01
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x42aa24
push eax
call fcn.0042d3f2
call fcn.0042d41e
jmp 0x42aa65
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x42aa87
mov eax, 0xff
call fcn.0042ebe4
ret
call fcn.0042ebf3
jmp 0x42a8b5
Function at 0x42bc7f
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x42bcd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x43f248], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x43f24c], eax
call esi
push str.FlsFree
push edi
mov dword [0x43f250], eax
call esi
mov dword [0x43f254], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x43f248], ebx
je 0x42bcf7
cmp dword [0x43f24c], ebx
je 0x42bcf7
cmp dword [0x43f250], ebx
je 0x42bcf7
cmp dword [0x43f254], ebx
jne 0x42bd1b
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x43f24c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x43f248], 0x42b8bb
mov dword [0x43f250], esi
mov dword [0x43f254], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x43c13c], eax
cmp eax, 0xffffffff
je 0x42bd8e
push dword [0x43f24c]
push eax
call esi
test eax, eax
je 0x42bd8e
call fcn.0042d43c
push dword [0x43f248]
call fcn.0042b7cc
push dword [0x43f24c]
mov dword [0x43f248], eax
call fcn.0042b7cc
push dword [0x43f250]
mov dword [0x43f24c], eax
call fcn.0042b7cc
push dword [0x43f254]
mov dword [0x43f250], eax
call fcn.0042b7cc
add esp, 0x10
mov dword [0x43f254], eax
call fcn.0042c3dc
test eax, eax
jne 0x42bd94
call fcn.0042b92b
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.0042bac6
push dword [0x43f248]
call fcn.0042b848
pop ecx
call eax
mov dword [0x43c140], eax
cmp eax, 0xffffffff
je 0x42bd89
push 0x214
push 1
call fcn.0042f93d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x42bd89
push esi
push dword [0x43c140]
push dword [0x43f250]
call fcn.0042b848
pop ecx
call eax
test eax, eax
jne 0x42bde7
push esi
call fcn.00429a3a
pop ecx
jmp 0x42bd89
push ebx
push esi
call fcn.0042b968
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x42bd90
Function at 0x42d47e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x43c278]
je 0x42d4a4
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x42d492
cmp esi, 0x17
jae 0x42d5fe
push 3
call fcn.004301bf
pop ecx
cmp eax, 1
je 0x42d5c8
push 3
call fcn.004301bf
pop ecx
test eax, eax
jne 0x42d4d7
cmp dword [0x43c100], 1
je 0x42d5c8
cmp edi, 0xfc
je 0x42d5fe
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x43f400
push esi
call fcn.0042faa0
add esp, 0xc
test eax, eax
je 0x42d50d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
mov byte [0x43f51d], bl
push 0x104
mov ebx, 0x43f419
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d550
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.0042faa0
add esp, 0xc
test eax, eax
je 0x42d550
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042d7ce
add esp, 0x14
push ebx
push edi
push esi
call fcn.0043014b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x42d56e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
push 0x436368
push edi
push esi
call fcn.0043014b
add esp, 0xc
test eax, eax
je 0x42d58e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x43c27c]
push edi
push esi
call fcn.0043014b
add esp, 0xc
test eax, eax
je 0x42d5b3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.0042ffa9
add esp, 0xc
jmp 0x42d5fe
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x42d5fe
cmp edi, 0xffffffff
je 0x42d5fe
mov edx, dword [esi*8 + 0x43c27c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d5e7
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ffa9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b83f
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x43fc70], ebx
jne 0x430082
push ebx
push ebx
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x42ffed
xor eax, eax
jmp 0x430146
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42ffe6
push eax
call fcn.0042b7cc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fc70], eax
call esi
push eax
call fcn.0042b7cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fc74], eax
call esi
push eax
call fcn.0042b7cc
mov dword [0x43fc78], eax
lea eax, [ebp - 8]
push eax
call fcn.0042d21f
pop ecx
pop ecx
test eax, eax
je 0x430050
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x430082
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042b7cc
pop ecx
mov dword [0x43fc80], eax
cmp eax, ebx
je 0x430082
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b7cc
pop ecx
mov dword [0x43fc7c], eax
mov eax, dword [0x43fc7c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4300fb
cmp dword [0x43fc80], esi
je 0x4300fb
push eax
call fcn.0042b848
pop ecx
call eax
cmp eax, ebx
je 0x4300c8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43fc80]
call fcn.0042b848
pop ecx
call eax
test eax, eax
je 0x4300c8
test byte [ebp - 0x18], 1
jne 0x4300fb
lea eax, [ebp - 0xc]
push eax
call fcn.0042d25b
pop ecx
test eax, eax
je 0x4300e3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d7ce
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4300f2
or dword [ebp + 0x10], 0x200000
jmp 0x43012c
or dword [ebp + 0x10], 0x40000
jmp 0x43012c
mov eax, dword [0x43fc74]
cmp eax, esi
je 0x43012c
push eax
call fcn.0042b848
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x43012c
mov eax, dword [0x43fc78]
cmp eax, esi
je 0x43012c
push dword [ebp - 4]
push eax
call fcn.0042b848
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43fc70]
call fcn.0042b848
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret