joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4278f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.LYzrrUgK
lea edi, [esi - 0x10000]
mov dword [edi + 0x1c708], 0x10d12fd2
push edi
or ebp, 0xffffffff
jmp 0x42791a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427910
mov eax, 1
add ebx, ebx
jne 0x427933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427928
jne 0x427944
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427928
xor ecx, ecx
sub eax, 3
jb 0x427958
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4279ca
mov ebp, eax
add ebx, ebx
jne 0x427963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427994
inc ecx
add ebx, ebx
jne 0x427980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427975
jne 0x427991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427975
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4279b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4279a5
jmp 0x427916
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4279b4
add edi, ecx
jmp 0x427916
pop esi
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427a13
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27284]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4279d1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2728c]
or eax, eax
je 0x427a0d
mov dword [ebx], eax
add ebx, 4
jmp 0x4279ee
call dword [esi + 0x27288]
mov ebp, dword [esi + 0x27290]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x427a47
sub esp, 0xffffff80
jmp section.WRgfGBxY

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4012f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1570
call fcn.00402610
mov eax, dword [0x40e090]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1580]
push edi
push esi
mov dword [esp + 0x1580], eax
mov ebx, ecx
call fcn.00402961
add esp, 4
lea eax, [esp + 0xb54]
push eax
push 0xa28
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x1588]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004027ac
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4013d3
nop
test byte [esp + 0x14], 0x10
jne 0x4013b8
lea edx, [esp + 0x12c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401362
lea eax, [esp + 0x28]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401372
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401383
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebx
call dword [eax]
test al, al
je 0x40150c
mov esi, dword [esp + 0x1584]
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00402889
add esp, 8
test eax, eax
je 0x401350
push ebp
call fcn.00402728
add esp, 4
push esi
call fcn.00402961
lea eax, [esp + 0x18]
push eax
push 0x40c210
call fcn.004027ac
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
je 0x4014f1
lea ebx, [ebx]
test byte [esp + 0x14], 0x10
je 0x4014d2
mov edi, 0x40c20c
lea esi, [esp + 0x28]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4014d2
mov edi, 0x40c208
lea esi, [esp + 0x28]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4014d2
mov ebp, dword [esp + 0x1584]
lea edx, [esp + 0x12c]
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401450
lea eax, [esp + 0x28]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401460
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401471
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x12c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401491
mov cx, word [0x40c1fc]
mov edx, dword [ebx]
push ebp
lea eax, [esp + 0x130]
mov word [edi], cx
push eax
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x1588]
push ecx
lea edx, [esp + 0x130]
push edx
mov ecx, ebx
call fcn.004012f0
test al, al
je 0x40150c
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00402889
add esp, 8
test eax, eax
je 0x401400
push ebp
call fcn.00402728
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x157c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040267e
add esp, 0x1570
ret 8
xor al, al
jmp 0x4014f3
Function at 0x401b70
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
mov eax, 0x3d00
call fcn.00402610
mov eax, dword [0x40e090]
mov dword [esp + 0x3cfc], eax
push esi
lea eax, [esp + 8]
push eax
push 0xa28
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
push ecx
call fcn.00403d2d
lea edx, [esp + 8]
push edx
call fcn.00403bad
push eax
push str._y__m__d__H__M__S_
lea eax, [esp + 0x1468]
push 0xa28
push eax
call fcn.00403b92
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x18
push str.HHD_
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0x1458]
push edx
lea eax, [esp + 0xc]
push eax
call esi
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1e80]
call fcn.00401ca0
lea eax, [esp + 8]
push eax
push 1
lea ecx, [esp + 0xa38]
push ecx
lea ecx, [esp + 0x1e8c]
mov byte [esp + 0xa3c], 0x63
mov byte [esp + 0xa3d], 0x3a
mov byte [esp + 0xa3e], 0
call fcn.00401ce0
test al, al
pop esi
je 0x401c67
push str..doc
lea ecx, [esp + 0x1e80]
call fcn.004016c0
push str..docx
lea ecx, [esp + 0x1e80]
call fcn.004016c0
push 0
push 0
push 0x40c218
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1e7c]
call fcn.00401cd0
mov ecx, dword [esp + 0x3cfc]
xor eax, eax
call fcn.0040267e
add esp, 0x3d00
ret 0x10

Function at 0x402326
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402610
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4023c1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40ee14]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4023c1
cmp eax, 1
je 0x4023e2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4023c1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40238e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4023bd
xor eax, eax
inc eax
jmp 0x402401
cmp edi, eax
jae 0x4023c5
xor eax, eax
jmp 0x402401
cmp eax, esi
jae 0x4023cc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ee14]
jmp 0x4023e5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402961
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x40c358
call fcn.00404060
mov eax, dword [0x40e090]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x402a6e
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x402a1f
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00402610
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x402a0c
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x402a6e
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x402a6e
mov al, byte [edi]
cmp al, 0x5c
je 0x402a2d
cmp al, 0x2f
jne 0x402a32
cmp al, byte [edi + 1]
je 0x402a68
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.004058b8
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x402a6e
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405638
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x402a8a
push edi
call fcn.004022b5
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0040267e
call fcn.0040409b
ret
Function at 0x403e27
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c4c0
call fcn.00404060
mov edi, 0x94
mov eax, edi
call fcn.00402610
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40ee14], ecx
mov eax, dword [esi + 4]
mov dword [0x40ee20], eax
mov edx, dword [esi + 8]
mov dword [0x40ee24], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ee18], esi
cmp ecx, 2
je 0x403e87
or esi, 0x8000
mov dword [0x40ee18], esi
shl eax, 8
add eax, edx
mov dword [0x40ee1c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403ec2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403ec2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403eda
cmp eax, 0x20b
je 0x403ec7
mov dword [ebp - 0x1c], esi
jmp 0x403eee
cmp dword [ecx + 0x84], 0xe
jbe 0x403ec2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403ee8
cmp dword [ecx + 0x74], 0xe
jbe 0x403ec2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004043fc
pop ecx
test eax, eax
jne 0x403f02
push 0x1c
call fcn.00403e03
pop ecx
call fcn.004063c5
test eax, eax
jne 0x403f13
push 0x10
call fcn.00403e03
pop ecx
call fcn.00408c54
mov dword [ebp - 4], esi
call fcn.00408a56
test eax, eax
jge 0x403f2c
push 0x1b
call fcn.00403dde
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410538], eax
call fcn.00408934
mov dword [0x40eca8], eax
call fcn.00408892
test eax, eax
jge 0x403f52
push 8
call fcn.00403dde
pop ecx
call fcn.0040865f
test eax, eax
jge 0x403f63
push 9
call fcn.00403dde
pop ecx
push 1
call fcn.00404fe5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403f79
push eax
call fcn.00403dde
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408602
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403f9a
movzx eax, word [ebp - 0x40]
jmp 0x403f9d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401b70
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403fbb
push edi
call fcn.00405112
call fcn.00405134
jmp 0x403fed
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040409b
ret
Function at 0x40504f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40c508
call fcn.00404060
push 8
call fcn.004043b1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40ee54], esi
jne 0x405083
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40ee50], esi
mov al, byte [ebp + 0x10]
mov byte [0x40ee4c], al
cmp dword [ebp + 0xc], edi
jne 0x4050cd
cmp dword [0x410508], edi
je 0x4050bd
mov eax, dword [0x410504]
sub eax, 4
mov dword [0x410504], eax
cmp eax, dword [0x410508]
jb 0x4050bd
mov eax, dword [eax]
cmp eax, edi
je 0x40509e
call eax
jmp 0x40509e
push 0x40e038
mov eax, 0x40e030
call fcn.00404fcd
pop ecx
push 0x40e044
mov eax, 0x40e03c
call fcn.00404fcd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4050fe
cmp dword [ebp + 0x10], edi
jne 0x40510c
mov dword [0x40ee54], esi
push dword [ebp + 8]
call fcn.00404f8b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40510b
push 8
call fcn.004042fc
pop ecx
ret
call fcn.0040409b
ret
Function at 0x405152
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405180
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405187
cmp ebx, dword [eax + 4]
jae 0x405187
xor eax, eax
jmp 0x405377
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405198
xor eax, eax
inc eax
jmp 0x405376
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4051ae
cmp ecx, edx
jae 0x4052f3
cmp dword [eax + 4], 0
je 0x4051b7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40519f
cmp dword [ebp + 8], 0
je 0x4051d9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4052f3
cmp eax, esi
jae 0x4052f3
mov eax, dword [0x40ee58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4051fe
cmp dword [esi*4 + 0x40ee60], edi
je 0x4052f7
inc esi
cmp esi, eax
jl 0x4051ec
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405373
cmp dword [ebp - 8], 0x1000000
jne 0x405373
test byte [ebp - 0xc], 0xcc
je 0x40527c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405373
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405373
cmp word [eax + 0x18], 0x10b
jne 0x405373
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405373
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40527c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40527c
test byte [ecx + 0x27], 0x80
jne 0x4052f3
push 1
push 0x40eea0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405190
mov ecx, dword [0x40ee58]
test ecx, ecx
mov edx, ecx
jle 0x4052b0
lea eax, [ecx*4 + 0x40ee5c]
cmp dword [eax], edi
je 0x4052b0
dec edx
sub eax, 4
test edx, edx
jg 0x4052a4
test edx, edx
jne 0x4052e1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4052bd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4052d5
lea eax, [edx*4 + 0x40ee60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4052c3
cmp ecx, 0x10
jge 0x4052e1
inc ecx
mov dword [0x40ee58], ecx
push 0
push 0x40eea0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405190
xor eax, eax
jmp 0x405376
test esi, esi
jle 0x405190
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40eea0
call ebx
test eax, eax
jne 0x405190
cmp dword [esi*4 + 0x40ee60], edi
je 0x40534d
mov eax, dword [0x40ee58]
lea esi, [eax - 1]
test esi, esi
jl 0x40533b
cmp dword [esi*4 + 0x40ee60], edi
je 0x405337
dec esi
jns 0x40532b
test esi, esi
jge 0x40534b
cmp eax, 0x10
jge 0x405346
inc eax
mov dword [0x40ee58], eax
lea esi, [eax - 1]
jmp 0x40534d
je 0x405365
xor ecx, ecx
test esi, esi
jl 0x405365
lea eax, [ecx*4 + 0x40ee60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405353
push 0
push 0x40eea0
call ebx
jmp 0x405190
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4082ee
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e090]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e788]
je 0x408323
inc eax
cmp eax, 0x13
jb 0x408314
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e788]
jne 0x408449
mov eax, dword [0x40ecb0]
cmp eax, 1
je 0x408421
cmp eax, edx
jne 0x408353
cmp dword [0x40e174], 1
je 0x408421
cmp ecx, 0xfc
je 0x408449
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408389
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004057c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4083bd
mov eax, edi
push eax
call fcn.00406f90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c54c
push edi
call fcn.00408e70
add esp, 0x10
push edi
call fcn.00406f90
push dword [esi + 0x40e78c]
mov ebx, eax
call fcn.00406f90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402610
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004057c0
push edi
push ebx
call fcn.004057d0
push 0x40c548
push ebx
call fcn.004057d0
push dword [esi + 0x40e78c]
push ebx
call fcn.004057d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408d77
add esp, 0x2c
jmp 0x408449
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e78c]
push dword [esi]
call fcn.00406f90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040267e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408d77
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f0c0], ebx
push esi
push edi
jne 0x408df7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408e32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ceec
push edi
call esi
test eax, eax
mov dword [0x40f0c0], eax
je 0x408e32
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f0c4], eax
call esi
cmp dword [0x40ee14], 2
mov dword [0x40f0c8], eax
jne 0x408df7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f0d0], eax
je 0x408df7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f0cc], eax
mov eax, dword [0x40f0cc]
test eax, eax
je 0x408e3c
call eax
test eax, eax
je 0x408e23
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f0d0]
test eax, eax
je 0x408e23
test byte [ebp - 8], 1
jne 0x408e3c
cmp dword [0x40ee20], 4
jb 0x408e36
or byte [ebp + 0x12], 0x20
jmp 0x408e5b
xor eax, eax
jmp 0x408e6b
or byte [ebp + 0x12], 4
jmp 0x408e5b
mov eax, dword [0x40f0c4]
test eax, eax
je 0x408e5b
call eax
mov ebx, eax
test ebx, ebx
je 0x408e5b
mov eax, dword [0x40f0c8]
test eax, eax
je 0x408e5b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f0c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409592
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x40e090]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4095c3
xor eax, eax
jmp 0x40974c
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4101c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4095ff
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040a7a9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4096da
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x409718
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x409663
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x409654
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x409634
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4096a3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4096ac
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x409625
jmp 0x4096ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x409747
cmp dword [ebp - 0x6c], edi
je 0x409718
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40970d
call fcn.00405626
mov dword [eax], 9
call fcn.0040562f
mov dword [eax], esi
jmp 0x409742
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409702
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4096ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4096ae
push dword [ebp - 0x6c]
call fcn.00405638
pop ecx
jmp 0x409742
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x409730
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x409730
xor eax, eax
jmp 0x40974a
call fcn.00405626
mov dword [eax], 0x1c
call fcn.0040562f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40974a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040267e
add ebp, 0x3a0
leave
ret