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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcc000]
push edi
jmp 0x52309a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5230a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x523090
mov eax, 1
add ebx, ebx
jne 0x5230b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5230c4
jne 0x5230e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5230e3
dec eax
add ebx, ebx
jne 0x5230d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5230a8
add ebx, ebx
jne 0x5230df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x523135
xor ecx, ecx
sub eax, 3
jb 0x5230fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52316a
sar eax, 1
mov ebp, eax
jmp 0x523106
add ebx, ebx
jne 0x523106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5230d4
inc ecx
add ebx, ebx
jne 0x523114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5230d4
add ebx, ebx
jne 0x523121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x523116
jne 0x523132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x523116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x523154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x523146
jmp 0x523096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x523154
add edi, ecx
jmp 0x523096
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x523172
cmp byte [edi], 0x11
jne 0x523172
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x523177
lea edi, [esi + 0x11c000]
mov eax, dword [edi]
or eax, eax
je 0x5231ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16d638]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16d7b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5231a4
mov ecx, edi
jns 0x5231d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16d7b8]
or eax, eax
je 0x5231e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5231c1
call dword [esi + 0x16d7c8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x523220
cmp al, 0xef
ja 0x523213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5231f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x523202
mov ebp, dword [esi + 0x16d7bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x523254
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x405aa0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x438180]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x3f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push pe_nt_image_headers32
lea eax, [esp + 0x24]
push eax
call sub.WS2_32.dll_gethostname
lea ecx, [esp + 0x20]
push ecx
call sub.WS2_32.dll_gethostbyname
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edi, dword [eax]
push edi
call sub.WS2_32.dll_inet_ntoa
mov ebx, eax
call fcn.0041e2b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push ebx
lea eax, [esp + 0x10]
push str.TCP_IP_Address:__s
push eax
mov dword [esp + 0x140], 0
call fcn.004058a0
mov ebx, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x402
mov ecx, esi
call fcn.00422e9e
mov ecx, eax
call fcn.00422fa1
lea ecx, [esp + 0x10]
call fcn.00402a60
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.00402ac0
test eax, eax
lea ecx, [esp + 0x10]
je 0x405b8a
push edi
call fcn.00401790
mov edi, eax
test edi, edi
jne 0x405bb7
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.00402090
lea eax, [ebx - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x405c3f
mov eax, dword [edi + 0xc]
push eax
lea ecx, [esp + 0x10]
push str.Subnet_Mask:__s
push ecx
call fcn.004058a0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
push 0x403
mov ecx, esi
call fcn.00422e9e
mov ecx, eax
call fcn.00422fa1
mov eax, dword [edi + 0x10]
push eax
lea ecx, [esp + 0x10]
push str.Gateway:__s
push ecx
call fcn.004058a0
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
push 0x404
mov ecx, esi
call fcn.00422e9e
mov ecx, eax
call fcn.00422fa1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.00402090
lea eax, [edi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.0041092e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4076ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40770d
call fcn.004283e3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40770d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x407703
xor eax, eax
jmp 0x407826
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40773d
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40773d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x407823
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40776a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00408d13
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x407823
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4077b3
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4077b3
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4077ad
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00408d13
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x407813
and dword [ebp + 0xc], 0
jmp 0x407813
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x407813
push 0xc
call fcn.0041e22b
mov esi, eax
test esi, esi
pop ecx
je 0x4077f5
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4077f7
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40780e
push dword [ebp - 8]
call fcn.0041dc6c
jmp 0x407813
call fcn.0041dc43
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x407778
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4119c7
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.00411bc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411a62
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 [0x43b2e8]
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 0x411a62
cmp eax, 1
je 0x411a83
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 0x411a62
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x411a2f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411a5e
xor eax, eax
inc eax
jmp 0x411aa2
cmp edi, eax
jae 0x411a66
xor eax, eax
jmp 0x411aa2
cmp eax, esi
jae 0x411a6d
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 [0x43b2e8]
jmp 0x411a86
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 0x411c62
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42fbc0
call fcn.004127d8
mov edi, 0x94
mov eax, edi
call fcn.00411bc0
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 [0x43b2e8], ecx
mov eax, dword [esi + 4]
mov dword [0x43b2f4], eax
mov edx, dword [esi + 8]
mov dword [0x43b2f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43b2ec], esi
cmp ecx, 2
je 0x411cc2
or esi, 0x8000
mov dword [0x43b2ec], esi
shl eax, 8
add eax, edx
mov dword [0x43b2f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411cfd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411d15
cmp eax, 0x20b
je 0x411d02
mov dword [ebp - 0x1c], esi
jmp 0x411d29
cmp dword [ecx + 0x84], 0xe
jbe 0x411cfd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411d23
cmp dword [ecx + 0x74], 0xe
jbe 0x411cfd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041383d
pop ecx
test eax, eax
jne 0x411d3d
push 0x1c
call fcn.00411c3e
pop ecx
call fcn.00414fd8
test eax, eax
jne 0x411d4e
push 0x10
call fcn.00411c3e
pop ecx
call fcn.004179e0
mov dword [ebp - 4], esi
call fcn.004177e2
test eax, eax
jge 0x411d67
push 0x1b
call fcn.00411c19
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43cbb0], eax
call fcn.004176c0
mov dword [0x43b2d8], eax
call fcn.0041761e
test eax, eax
jge 0x411d8d
push 8
call fcn.00411c19
pop ecx
call fcn.004173eb
test eax, eax
jge 0x411d9e
push 9
call fcn.00411c19
pop ecx
push 1
call fcn.0041254e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411db4
push eax
call fcn.00411c19
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041738e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411dd5
movzx eax, word [ebp - 0x40]
jmp 0x411dd8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041d37e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411df6
push edi
call fcn.0041267b
call fcn.0041269d
jmp 0x411e28
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412813
ret
Function at 0x4125b8
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42fbf8
call fcn.004127d8
push 8
call fcn.004139e1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43b328], esi
jne 0x4125ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43b324], esi
mov al, byte [ebp + 0x10]
mov byte [0x43b320], al
cmp dword [ebp + 0xc], edi
jne 0x412636
cmp dword [0x43cba8], edi
je 0x412626
mov eax, dword [0x43cba4]
sub eax, 4
mov dword [0x43cba4], eax
cmp eax, dword [0x43cba8]
jb 0x412626
mov eax, dword [eax]
cmp eax, edi
je 0x412607
call eax
jmp 0x412607
push 0x437094
mov eax, 0x43708c
call fcn.00412536
pop ecx
push 0x4370a0
mov eax, 0x437098
call fcn.00412536
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412667
cmp dword [ebp + 0x10], edi
jne 0x412675
mov dword [0x43b328], esi
push dword [ebp + 8]
call fcn.004124f4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412674
push 8
call fcn.0041392c
pop ecx
ret
call fcn.00412813
ret
Function at 0x415a09
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x438180]
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 0x415a3a
xor eax, eax
jmp 0x415bc3
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 + 0x43b820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415a76
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041a26a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415b51
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x415b8f
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 0x415ada
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415acb
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 0x415aab
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 0x415b1a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415b23
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x415a9c
jmp 0x415b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x415bbe
cmp dword [ebp - 0x6c], edi
je 0x415b8f
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x415b84
call fcn.00411068
mov dword [eax], 9
call fcn.00411071
mov dword [eax], esi
jmp 0x415bb9
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 0x415b79
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x415b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x415b25
push dword [ebp - 0x6c]
call fcn.0041107a
pop ecx
jmp 0x415bb9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415ba7
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x415ba7
xor eax, eax
jmp 0x415bc1
call fcn.00411068
mov dword [eax], 0x1c
call fcn.00411071
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x415bc1
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041092e
add ebp, 0x3a0
leave
ret
Function at 0x416e51
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 0x416e7f
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 0x416e86
cmp ebx, dword [eax + 4]
jae 0x416e86
xor eax, eax
jmp 0x417076
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416e97
xor eax, eax
inc eax
jmp 0x417075
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x416ead
cmp ecx, edx
jae 0x416ff2
cmp dword [eax + 4], 0
je 0x416eb6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x416e9e
cmp dword [ebp + 8], 0
je 0x416ed8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416ff2
cmp eax, esi
jae 0x416ff2
mov eax, dword [0x43b4b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x416efd
cmp dword [esi*4 + 0x43b4c0], edi
je 0x416ff6
inc esi
cmp esi, eax
jl 0x416eeb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417072
cmp dword [ebp - 8], 0x1000000
jne 0x417072
test byte [ebp - 0xc], 0xcc
je 0x416f7b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417072
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417072
cmp word [eax + 0x18], 0x10b
jne 0x417072
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417072
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416f7b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416f7b
test byte [ecx + 0x27], 0x80
jne 0x416ff2
push 1
push 0x43b500
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x416e8f
mov ecx, dword [0x43b4b8]
test ecx, ecx
mov edx, ecx
jle 0x416faf
lea eax, [ecx*4 + 0x43b4bc]
cmp dword [eax], edi
je 0x416faf
dec edx
sub eax, 4
test edx, edx
jg 0x416fa3
test edx, edx
jne 0x416fe0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416fbc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416fd4
lea eax, [edx*4 + 0x43b4c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416fc2
cmp ecx, 0x10
jge 0x416fe0
inc ecx
mov dword [0x43b4b8], ecx
push 0
push 0x43b500
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x416e8f
xor eax, eax
jmp 0x417075
test esi, esi
jle 0x416e8f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43b500
call ebx
test eax, eax
jne 0x416e8f
cmp dword [esi*4 + 0x43b4c0], edi
je 0x41704c
mov eax, dword [0x43b4b8]
lea esi, [eax - 1]
test esi, esi
jl 0x41703a
cmp dword [esi*4 + 0x43b4c0], edi
je 0x417036
dec esi
jns 0x41702a
test esi, esi
jge 0x41704a
cmp eax, 0x10
jge 0x417045
inc eax
mov dword [0x43b4b8], eax
lea esi, [eax - 1]
jmp 0x41704c
je 0x417064
xor ecx, ecx
test esi, esi
jl 0x417064
lea eax, [ecx*4 + 0x43b4c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417052
push 0
push 0x43b500
call ebx
jmp 0x416e8f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41707a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x438180]
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 + 0x4389b0]
je 0x4170af
inc eax
cmp eax, 0x13
jb 0x4170a0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4389b0]
jne 0x4171d5
mov eax, dword [0x43b2e0]
cmp eax, 1
je 0x4171ad
cmp eax, edx
jne 0x4170df
cmp dword [0x438334], 1
je 0x4171ad
cmp ecx, 0xfc
je 0x4171d5
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 0x417115
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004151f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00412180
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417149
mov eax, edi
push eax
call fcn.00412180
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42fc8c
push edi
call fcn.00415380
add esp, 0x10
push edi
call fcn.00412180
push dword [esi + 0x4389b4]
mov ebx, eax
call fcn.00412180
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411bc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004151f0
push edi
push ebx
call fcn.00415200
push 0x42fc88
push ebx
call fcn.00415200
push dword [esi + 0x4389b4]
push ebx
call fcn.00415200
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419a10
add esp, 0x2c
jmp 0x4171d5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4389b4]
push dword [esi]
call fcn.00412180
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.0041092e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x419a10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43b718], ebx
push esi
push edi
jne 0x419a90
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419acb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x430ba4
push edi
call esi
test eax, eax
mov dword [0x43b718], eax
je 0x419acb
push 0x430b94
push edi
call esi
push 0x430b80
push edi
mov dword [0x43b71c], eax
call esi
cmp dword [0x43b2e8], 2
mov dword [0x43b720], eax
jne 0x419a90
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43b728], eax
je 0x419a90
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43b724], eax
mov eax, dword [0x43b724]
test eax, eax
je 0x419ad5
call eax
test eax, eax
je 0x419abc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43b728]
test eax, eax
je 0x419abc
test byte [ebp - 8], 1
jne 0x419ad5
cmp dword [0x43b2f4], 4
jb 0x419acf
or byte [ebp + 0x12], 0x20
jmp 0x419af4
xor eax, eax
jmp 0x419b04
or byte [ebp + 0x12], 4
jmp 0x419af4
mov eax, dword [0x43b71c]
test eax, eax
je 0x419af4
call eax
mov ebx, eax
test ebx, ebx
je 0x419af4
mov eax, dword [0x43b720]
test eax, eax
je 0x419af4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43b718]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b7be
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00411bc0
mov eax, dword [0x438180]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041a0dd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41b8f1
push 2
push esi
push dword [ebp + 8]
call fcn.0041a0dd
add esp, 0xc
cmp eax, ebx
je 0x41b8f1
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41b891
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004126c0
push 0x8000
push dword [ebp + 8]
call fcn.0041c52c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41b847
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00415a09
add esp, 0xc
cmp eax, 0xffffffff
je 0x41b867
sub edi, eax
test edi, edi
jg 0x41b83f
jmp 0x41b87f
call fcn.00411071
cmp dword [eax], 5
jne 0x41b87c
call fcn.00411068
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041c52c
pop ecx
pop ecx
jmp 0x41b8d9
jge 0x41b8d9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a0dd
push dword [ebp + 8]
call fcn.00419d07
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41b8d9
call fcn.00411068
mov dword [eax], 0xd
call fcn.00411071
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0041a0dd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41b8f3
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041092e
leave
ret