joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ee9
Capabilities:
Get disk information

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
je 0x403040
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x209], 0x5c
je 0x402f38
push 0x40b144
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
xor ebx, ebx
push eax
call fcn.004035e0
add esp, 4
mov al, byte [ebp - 0x208]
sub al, 0x40
mov byte [ebp - 0x103], bl
mov byte [ebp - 0x104], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x403040
push 3
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00404200
add esp, 0xc
lea ecx, [ebp - 0x104]
mov byte [ebp - 0x101], bl
push ecx
call fcn.00402eb2
add esp, 4
cmp eax, dword [ebp + 0x10]
jb 0x403040
push ebx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push str._sEXB_04X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.00409340
add esp, 8
test eax, eax
jne 0x402fe4
inc ebx
cmp ebx, 0xffff
jb 0x402fa9
lea eax, [ebp - 0x104]
mov esi, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004035e0
add esp, 4
push esi
call fcn.004037a0
add esp, 4
mov edi, eax
push 0x40b154
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp edi, 0xffffffff
jne 0x40302f
cmp dword [0x40b164], 0xd
jne 0x403039
mov dword [0x40c7fc], 0
jmp 0x403039
mov dword [0x40c7fc], 1
mov eax, 1
jmp 0x403042
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4033d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40b1ac], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4033ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40b1a8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x40b1a4], bl
jne 0x403448
cmp dword [0x40d95c], 0
je 0x403436
mov edi, dword [0x40d958]
sub edi, 4
cmp edi, dword [0x40d95c]
jb 0x403436
mov eax, dword [edi]
test eax, eax
je 0x40342b
call eax
sub edi, 4
cmp edi, dword [0x40d95c]
jae 0x403423
push 0x40b01c
push 0x40b014
call fcn.00403480
add esp, 8
push 0x40b024
push 0x40b020
call fcn.00403480
add esp, 8
test ebx, ebx
jne 0x40346f
mov dword [0x40b1ac], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x403810
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x403899
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x403899
cmp byte [esp + 4], 0x5c
je 0x403847
cmp byte [esp + 4], 0x2f
jne 0x40385a
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x40385a
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call 0x405c40
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x403899
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405bd0
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x4057e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x405791
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4057af
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 0x40580d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], ah
add byte [eax], ah
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4057f4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4057fd
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x405807
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4057e9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x405773
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 0x40585a
dec eax
je 0x405851
sub eax, 3
je 0x405848
mov dword [ebp - 4], 0x40
jmp 0x405877
mov dword [ebp - 4], 4
jmp 0x40585d
mov dword [ebp - 4], 0x20
jmp 0x40585d
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 0x4058a9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x405829
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004050ba
sub al, 0x5c
xlatb
dec esi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4058b5
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [eax - 0x5135b], eax
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.004050ca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040507f
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.004050ba
invalid
Function at 0x405ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [esi - 0x55000004], edx
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004050ca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040507f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004050ba
pop ecx
jae 0x406123
int 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004050ba
or byte [ebp + 0x6580e319], dh
loopne 0x4060d8
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.004050ca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040507f
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x406166
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x406186
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x4061a3
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0x104
jge 0x40620a
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
and eax, 0x80
test eax, eax
je 0x4061d5
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
jmp 0x406208
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
cmp eax, 0x5c
jne 0x4061f4
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
test eax, eax
jne 0x406208
jmp 0x40620a
jmp 0x406196
mov eax, dword [ebp - 0x670]
add eax, dword [ebp - 0x384]
mov dword [ebp - 0x670], eax
mov eax, dword [ebp - 0x670]
inc eax
mov dword [ebp - 0x670], eax
push dword [ebp - 0x338]
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040502b
add esp, 0xc
mov eax, dword [ebp - 0x670]
inc eax
mov dword [ebp - 0x670], eax
mov eax, dword [ebp - 0x670]
inc eax
mov dword [ebp - 0x670], eax
invalid
Function at 0x406f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7c9], 0
mov byte [ebp - 0x7c8], 0x9c
mov byte [ebp - 0x7c7], 0x90
mov byte [ebp - 0x7c6], 0x93
mov byte [ebp - 0x7c5], 0x81
mov byte [ebp - 0x7c4], 0x90
mov byte [ebp - 0x7c3], 0xac
mov byte [ebp - 0x7c2], 0xee
mov byte [ebp - 0x7c1], 0xa4
mov byte [ebp - 0x7c0], 0xac
mov byte [ebp - 0x7bf], 0xac
mov byte [ebp - 0x7be], 0xc0
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.004050ca
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040502b
add esp, 0xc
jmp 0x407032
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.0040133d

Function at 0x40403b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040270a
and dword [ebp - 0x14], 0
cmp dword [0x42bad4], 0
mov dword [ebp - 0x18], eax
jne 0x4040ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404196
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404196
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42bad4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42bad8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42badc], eax
call edi
push eax
call esi
mov dword [0x42bae4], eax
test eax, eax
je 0x4040ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42bae0], eax
mov eax, dword [0x42bae0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404147
cmp dword [0x42bae4], ecx
je 0x404147
push eax
call esi
push dword [0x42bae4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404147
test ebx, ebx
je 0x404147
call edi
test eax, eax
je 0x40413e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40413e
test byte [ebp - 8], 1
jne 0x404147
or dword [ebp + 0x10], 0x200000
jmp 0x40417a
mov eax, dword [0x42bad8]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40417a
mov eax, dword [0x42badc]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42bad4]
call esi
test eax, eax
je 0x404196
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409cd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x429f60]
sub esp, 0x10
push ebx
mov ebx, dword [0x470ea0]
push edi
mov edi, dword [0x47117c]
push eax
call fcn.00409be0
add esp, 4
cmp dword [0x47117c], 0x2f
jne 0x409d2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00409c30
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x47117c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409fb2
push 0
push 0
call edi
mov eax, dword [0x47117c]
cmp esi, 0x845013
jne 0x409fc9
mov eax, dword [0x42ad80]
add eax, 0xa231
mov dword [0x47117c], eax
cmp eax, 0x141
jne 0x409fe4
mov dword [0x42c018], 0xec58acac
mov dword [0x42c01c], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409fa0
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4090c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00409120

Function at 0x409120
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x420420]
test esi, esi
jle 0x40920d
mov edi, dword [0x420424]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x409154
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x409206
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x409140
mov dword [esp], eax
mov ebx, eax
call fcn.00409a50
test eax, eax
mov edi, eax
je 0x40924a
lea ebx, [esi + esi*2]
mov esi, dword [0x420424]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00409b50
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x420424]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40922a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4091ff
sub eax, 0x40
and eax, 0xffffffbf
je 0x4091ff
mov eax, dword [esp + 0x20]
add ebx, dword [0x420424]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x409214
add dword [0x420420], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40915e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004090c0
mov eax, dword [0x420424]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004090c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004090c0
lea esi, [esi]
Function at 0x4096c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x420438
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x420430]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x409715
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40970e
test esi, esi
je 0x40970e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4096f0
mov dword [esp], 0x420438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x409970
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4099a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40999e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4099aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x409990
xor eax, eax
pop ebx
pop esi
ret
Function at 0x409c80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x409dfc
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x1fc00000
mov eax, 0xffffffff
cmovbe eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x409d8b
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jg 0x409ce0
mov dword [edi + eax*4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401630
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x409de8
mov edx, dword [edi]
test edx, edx
je 0x409de8
xor ebx, ebx
jmp 0x409dd7
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x409de8
mov dword [esp], edx
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jg 0x409dd0
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x409df2
Function at 0x404f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411188
push 0x4078e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x416d98], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x416d94], ecx
shl ecx, 8
add ecx, edx
mov dword [0x416d90], ecx
shr eax, 0x10
mov dword [0x416d8c], eax
call fcn.004077b0
test eax, eax
jne 0x404f8a
push 0x1c
call fcn.00405050
add esp, 4
call fcn.004076b0
test eax, eax
jne 0x404f9d
push 0x10
call fcn.00405050
add esp, 4
mov dword [ebp - 4], 0
call fcn.004074a0
call fcn.00407490
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4183cc], eax
call fcn.00407030
mov dword [0x416d7c], eax
test eax, eax
je 0x404fd0
mov eax, dword [0x4183cc]
test eax, eax
jne 0x404fda
push 0xffffffffffffffff
call fcn.00405630
add esp, 4
call fcn.00406d80
call fcn.00406c90
call fcn.00405600
mov eax, dword [0x416da8]
mov dword [0x416dac], eax
push eax
mov eax, dword [0x416da0]
push eax
mov ecx, dword [0x416d9c]
push ecx
call fcn.00403ce0
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00405630
jmp 0x405035
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405670
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00405730
mov eax, dword [0x416dc8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x405694
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x416dc4], 1
mov byte [0x416dc0], bl
jne 0x4056ee
mov ecx, dword [0x4183c8]
test ecx, ecx
je 0x4056dc
mov esi, dword [0x4183c4]
sub esi, 4
cmp esi, ecx
jb 0x4056dc
mov eax, dword [esi]
test eax, eax
je 0x4056d5
call eax
mov ecx, dword [0x4183c8]
sub esi, 4
cmp esi, ecx
jae 0x4056c7
push 0x41301c
push 0x413014
call fcn.00405750
add esp, 8
push 0x413024
push 0x413020
call fcn.00405750
add esp, 8
test ebx, ebx
je 0x40570d
call fcn.00405740
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x416dc8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]