joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436a26
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44c750]
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 0x436a57
xor eax, eax
jmp 0x436be0
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 + 0x549140]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x436a93
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00439aca
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x436b6e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x436bac
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 0x436af7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x436ae8
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 0x436ac8
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 0x436b37
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x436b40
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x436ab9
jmp 0x436b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x436bdb
cmp dword [ebp - 0x6c], edi
je 0x436bac
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x436ba1
call fcn.0042b3d8
mov dword [eax], 9
call fcn.0042b3e1
mov dword [eax], esi
jmp 0x436bd6
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 0x436b96
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x436b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x436b42
push dword [ebp - 0x6c]
call fcn.0042b3ea
pop ecx
jmp 0x436bd6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x436bc4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x436bc4
xor eax, eax
jmp 0x436bde
call fcn.0042b3d8
mov dword [eax], 0x1c
call fcn.0042b3e1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x436bde
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042a57e
add ebp, 0x3a0
leave
ret
Function at 0x438a4b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x548eb4], ebx
push esi
push edi
jne 0x438acb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438b06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4464cc
push edi
call esi
test eax, eax
mov dword [0x548eb4], eax
je 0x438b06
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x548eb8], eax
call esi
cmp dword [0x5489fc], 2
mov dword [0x548ebc], eax
jne 0x438acb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x548ec4], eax
je 0x438acb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x548ec0], eax
mov eax, dword [0x548ec0]
test eax, eax
je 0x438b10
call eax
test eax, eax
je 0x438af7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x548ec4]
test eax, eax
je 0x438af7
test byte [ebp - 8], 1
jne 0x438b10
cmp dword [0x548a08], 4
jb 0x438b0a
or byte [ebp + 0x12], 0x20
jmp 0x438b2f
xor eax, eax
jmp 0x438b3f
or byte [ebp + 0x12], 4
jmp 0x438b2f
mov eax, dword [0x548eb8]
test eax, eax
je 0x438b2f
call eax
mov ebx, eax
test ebx, ebx
je 0x438b2f
mov eax, dword [0x548ebc]
test eax, eax
je 0x438b2f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x548eb4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439c0b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4464f8
call fcn.0042a3b0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x548ecc], edi
jne 0x439c4f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439c3a
mov dword [0x548ecc], ebx
jmp 0x439c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x439c4f
mov dword [0x548ecc], 2
mov eax, dword [0x548ecc]
cmp eax, ebx
jne 0x439c6f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x439d32
cmp eax, 2
je 0x439c78
cmp eax, edi
jne 0x439ca0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x439c8b
mov eax, dword [0x548e3c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x439ca7
xor eax, eax
jmp 0x439d32
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042a510
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x439cda
cmp esi, edi
jne 0x439cf0
push dword [ebp - 0x20]
call fcn.00429a7e
pop ecx
mov esi, eax
cmp esi, edi
je 0x439ca0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x439d23
cmp dword [ebp + 0x14], edi
jne 0x439d0d
push edi
push edi
jmp 0x439d13
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x439d2f
push esi
call fcn.00429a90
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0042a3eb
ret
Function at 0x439d3b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x446508
call fcn.0042a3b0
xor esi, esi
cmp dword [0x548ed0], esi
jne 0x439d7f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439d6a
mov dword [0x548ed0], edi
jmp 0x439d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x439d7f
mov dword [0x548ed0], 2
mov eax, dword [0x548ed0]
cmp eax, 2
je 0x439e60
cmp eax, esi
je 0x439e60
cmp eax, 1
jne 0x439dc4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x439dad
mov eax, dword [0x548e3c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x439dcb
xor eax, eax
jmp 0x439e72
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042a510
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x439e01
cmp edi, esi
jne 0x439e1c
lea eax, [ebx + ebx]
push eax
call fcn.00429a7e
pop ecx
mov edi, eax
cmp edi, esi
je 0x439dc4
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439e4f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x439e39
push esi
push esi
jmp 0x439e3f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x439e5b
push edi
call fcn.00429a90
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x439e72
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042a3eb
ret
Function at 0x43b467
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43b480
or eax, 0xffffffff
jmp 0x43b4e1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43b4dd
push 0x3d
push esi
call fcn.0043b63c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43b4dd
cmp esi, eax
je 0x43b4dd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x548a1c]
sete cl
cmp eax, dword [0x548a20]
mov dword [ebp - 8], ecx
jne 0x43b4c3
mov edi, eax
call fcn.0043b406
mov dword [0x548a1c], eax
cmp eax, ebx
jne 0x43b51c
cmp dword [ebp + 0xc], ebx
je 0x43b4e5
cmp dword [0x548a24], ebx
je 0x43b4e5
call fcn.0043ac63
test eax, eax
je 0x43b51c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43b4ee
xor eax, eax
jmp 0x43b4e0
push 4
call fcn.00429a7e
cmp eax, ebx
pop ecx
mov dword [0x548a1c], eax
je 0x43b4dd
mov dword [eax], ebx
cmp dword [0x548a24], ebx
jne 0x43b51c
push 4
call fcn.00429a7e
cmp eax, ebx
pop ecx
mov dword [0x548a24], eax
je 0x43b4dd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x548a1c]
call fcn.0043b3b9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43b57d
cmp dword [esi], ebx
je 0x43b57d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00429a90
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43b560
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43b5be
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43b557
mov eax, edi
shl eax, 2
push eax
push dword [0x548a1c]
call fcn.00429b01
cmp eax, ebx
pop ecx
pop ecx
je 0x43b5be
jmp 0x43b5b9
cmp dword [ebp - 8], ebx
jne 0x43b629
cmp edi, ebx
jge 0x43b58c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x548a1c]
call fcn.00429b01
cmp eax, ebx
pop ecx
pop ecx
je 0x43b4dd
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x548a1c], eax
cmp dword [ebp + 0xc], ebx
je 0x43b613
push dword [ebp - 4]
call fcn.0042a240
inc eax
inc eax
push eax
call fcn.00429a7e
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43b613
push dword [ebp - 4]
push esi
call fcn.0042a630
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43b60c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00429a90
pop ecx
cmp dword [ebp - 8], ebx
je 0x43b621
push dword [ebp - 4]
call fcn.00429a90
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43b4e0
push dword [ebp - 4]
call fcn.00429a90
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43b4ea
Function at 0x4629eb
Capabilities:
Encode data using xor

Disassembly:
add al, 0x1b
mov ecx, 0xa5973c12
mov dl, 0xc5
pushal
dec eax
inc dword [edx + 0x2de41680]
fiadd word [ecx + 0x89b55d0]
jecxz 0x462a29
xor edx, dword [0x1e00b4ed]
invalid

Function at 0x4c7ff1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d2408
cmp edx, dword [eax]
je 0x4c8013
add eax, 8
inc ecx
cmp eax, 0x4d2498
jl 0x4c8004
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d2408]
jne 0x4c8141
mov eax, dword [0x4d7e30]
cmp eax, 1
je 0x4c811b
test eax, eax
jne 0x4c8044
cmp dword [0x4d2334], 1
je 0x4c811b
cmp edx, 0xfc
je 0x4c8141
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c807b
lea eax, [ebp - 0x1a4]
push 0x4cde38
push eax
call fcn.004c89d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c80be
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cde34
push edi
call fcn.004cad30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cde18
push eax
call fcn.004c89d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c89e0
lea eax, [ebp - 0xa0]
push 0x4cde14
push eax
call fcn.004c89e0
push dword [esi + 0x4d240c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c89e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cddec
push eax
call fcn.004caca4
add esp, 0x2c
pop edi
jmp 0x4c8141
lea eax, [ebp + 8]
lea esi, [esi + 0x4d240c]
push 0
push eax
push dword [esi]
call fcn.004c8e60
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]
pop esi
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x402f36
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [eax]
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 8]
push edi
mov edi, dword [ebp + 8]
cmp edi, edx
jbe 0x402fc5
cmp dword [esi], 0
mov eax, dword [esi + 0xc]
jne 0x402f72
cmp eax, edi
jbe 0x402f58
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ecx
pop ecx
mov dword [esi], eax
test eax, eax
jne 0x402f6d
xor al, al
jmp 0x402fc7
mov dword [esi + 8], edi
jmp 0x402fc5
test eax, eax
jne 0x402f91
mov eax, dword [esi + 4]
shr eax, 3
cmp eax, 4
jae 0x402f86
push 4
pop eax
jmp 0x402f91
mov ecx, 0x400
cmp eax, ecx
jbe 0x402f91
mov eax, ecx
add eax, edx
mov ebx, eax
cmp edi, eax
jb 0x402f9b
mov ebx, edi
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
pop ecx
pop ecx
test dword [eax], eax
je 0x402f69
add byte [esi + 4], dh
add byte [esi], dh
push edi
call int.0042046b
add byte [eax], dh
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
pop ecx
mov dword [esi], edi
mov dword [esi + 8], ebx
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40d029
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
sub esp, 0xfffffff8
cmp word [eax + 6], 2
jne 0x40d0e2
mov eax, dword [ebp + 0x10]
push 0x401e90
push 0x400bfc
push esi
call fcn.0040d0cb
sti
pop word [eax]
retf 0x93
push dword fs:[0x30]
pop eax
mov eax, dword [eax + 0xc]
push edx
push 0x401948
call fcn.0040d15e
add byte [eax], al
sti
pop ecx
in al, dx
add byte [edi + 0x598300b1], cl
mov ch, 0
jle 0x40d0f6
rol dword [eax], cl
out dx, eax
test eax, 0x80
shl byte [edx], cl
add ch, cl
iretd

Function at 0x433e9d
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x52
outsb dx, byte [esi]
imul edi, dword [ecx - 0x73], 0x15
stosd dword es:[edi], eax
cmp byte [edx - 0x11], cl
dec edx
out dx, eax
xor dword [edi], ebx
xor dl, byte [esi]
cmpsd dword [esi], dword es:[edi]
shr byte [eax - 0x61bdb5de], 0xe6
fnsave dword [edi + 0x69e22005]
xor eax, 0x619a365e
invalid
inc edx
sahf
out 0xdd, al
mov bh, 5
and dl, ah
imul esi, dword [0x619a365e], 0x588e54c6
loopne 0x433e31
lcall 0xe058, 0x8e54c661
loope 0x433e27
salc
pushal
and dword [ebp + 0x7c], eax
daa
and eax, 0xd2aa8949
aas
or edx, dword [edi]
push ebx
loopne 0x433e3c
invalid
movsb byte es:[edi], byte [esi]
mov bx, 0xbda4
inc ebp
std
je 0x433e60
iretd
wait
scasb al, byte es:[edi]
push esi
xor al, byte [esi + 0x36]
cld
sub eax, 0xb646fc9c
pop edx
fucom st(6)
outsb dx, byte [esi]
je 0x433e47
cmp esp, dword [esi]
int 0xba
out dx, al
cld
invalid
Function at 0x401f72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00401f72
xor esi, esi
xor edi, edi
mov ecx, 0x2b
push esi
dec ecx
jne 0x401f8e
push 0
push 0x10
push 4
push 0x10a0008
push 0
lea ebx, [ebp - 0x130]
call fcn.00407b0f
mov esi, 1
mov edi, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0xa4]
and eax, dword [ebp - 0xac]
mov dword [ebp - 0xa8], eax
xor dword [ebp - 0xa8], edi
mov eax, dword [ebp - 0xac]
xor eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
xor dword [ebp - 0xa4], esi
mov eax, dword [ebp - 0xa8]
and eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
inc edi
cmp edi, 0xffff
jle 0x401fc0
inc esi
cmp esi, 0xfff
jle 0x401fb0
call fcn.0040298e
push 0
mov edx, 0x40a738
call fcn.00409566
lea ebx, [esp]
push ebx
call fcn.00408dd8
call fcn.004025d1
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00408c68
pop eax
add esp, 4
call fcn.0040957d
mov eax, 0x12000
call fcn.00409591
call fcn.00407f7f
call fcn.0040947f
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4074a8
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x40748a], 4
jne 0x4074c3
jmp 0x4078f2
jmp fcn.004076f5
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.004075f1
mov dword [ebx + 0x3f0], 1
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x407943
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0x3e4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00407697
mov dword [ebx + 0x3e0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebx + 0x3ec], eax
call fcn.004074c8
push 0xff
jb 0x4079c2
pop eax
movzx ecx, word [0x407488]
jecxz 0x40798d
push ecx
push 8
push esp
call dword [0x43b000]
pop eax
pop eax
call fcn.0040753d
push eax
mov ebx, section..data
mov ecx, dword [ebx + 0xd8]
call fcn.004079ce
mov ecx, dword [ebx + 0xb4]
jecxz 0x4079b2
push ecx
call dword [0x43b000]
mov edi, dword [ebx + 0x428]
call fcn.00407542
call fcn.00407529
call dword [sym.imp.OLE32.DLL_CoUninitialize]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4074c8
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x407528
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.004077d4
jb 0x407528
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.00407517
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x407531
push ebx
jb 0x40757e
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret
Function at 0x4076f5
Capabilities:
Terminate process

Disassembly:
mov edx, 0xf4
jmp 0x407701
mov dh, 0xb0
mov word [ebp - 0x90], dx
jmp 0x407717
test byte [ebp - 0x90], 0xff
jne 0x407729
mov word [ebp - 0x90], 0xb033
push eax
push ebx
push ecx
push esi
push edi
mov ax, word [ebp - 0x8e]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.004077d4
jb 0x407763
test dword [eax + 0x28], 0xffffffff
je 0x407763
test dword [eax + 0x24], 0xffffffff
je 0x407763
call fcn.004076f5
mov edi, dword [ebp - 0x84]
mov ecx, dword [edi - 6]
jecxz 0x407796
xor ebx, ebx
mov edx, dword [esp + 0x14]
xor esi, esi
mov bl, byte [ecx]
inc ecx
cmp bl, 0xff
jne 0x407786
add esi, 0xfe
jmp 0x407776
add esi, ebx
add edi, esi
cmp edi, edx
jb 0x407774
mov dword [eax + 0x30], edi
sub edi, esi
mov dword [eax + 0x2c], edi
test word [0x40748a], 0x2000
je 0x4077b7
test dword [ebp - 0x8c], 0xffffffff
jne 0x4077b7
call fcn.004076f5
cmp eax, 1
jne 0x4077c6
cmp byte [ebp - 0x90], 0xf1
jae 0x4077c6
pop edi
pop esi
pop ecx
pop ebx
pop eax
ret
push 0xff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4079d8
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
lea esi, [esp + 0x18]
mov ecx, dword [esi - 4]
push ecx
call fcn.00408b86
jb 0x407a28
lea esi, [esi + ecx*4 - 4]
push eax
xor ebx, ebx
mov eax, dword [esi]
mov byte [edi], al
sub esi, 4
inc ebx
cmp eax, 0xffffffff
je 0x407a01
dec ebx
inc edi
loop 0x4079f2
pop eax
test ebx, ebx
je 0x407a15
pop ecx
push ecx
sub ecx, ebx
mov esi, edx
call fcn.00408c04
jb 0x407a28
call fcn.00409599
pop edx
pop edi
pop esi
pop ecx
pop ebx
shl edx, 2
pop dword [esp + edx]
add esp, edx
ret
call fcn.00409597
pop edx
pop edi
pop esi
pop ecx
pop ebx
shl edx, 2
pop dword [esp + edx]
add esp, edx
jmp fcn.0040770c
Function at 0x407b0f
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
pop dword [ebp - 0x6c]
pop edx
pop ax
test byte [ebx + 4], 4
je 0x407b31
pop cx
movzx ecx, ch
add esp, 4
add esp, 8
loop 0x407b29
jmp dword [ebp - 0x6c]
mov byte [ebx + 5], 2
mov byte [ebx + 4], al
mov dword [ebx], edx
pop word [ebx + 6]
pop dword [ebx + 0x14]
movzx ecx, byte [ebx + 7]
mov esi, ecx
shl esi, 1
add esi, ecx
shl esi, 2
pop dword [ebx + esi + 0x10]
pop dword [ebx + esi + 0xc]
sub esi, 0xc
jne 0x407b4e
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x407bc3
inc eax
dec ecx
je 0x407b86
add esi, 0xc
mov dword [ebx + esi + 0x14], eax
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x407bc3
inc eax
mul dword [ebx + esi + 0x14]
dec ecx
ja 0x407b69
je 0x407b86
jb 0x407bc3
mov dword [ebx + 8], eax
mul dword [ebx + 0x14]
jb 0x407bc3
test byte [ebx + 4], 1
je 0x407b99
mov dword [ebx + 0xc], eax
jmp 0x407bb6
push eax
call fcn.004076bd
pop ecx
jb 0x407bc5
mov dword [ebx], eax
mov dword [ebx + 0xc], ecx
mov edi, eax
cld
xor eax, eax
shr ecx, 1
rep stosw word es:[edi], ax
adc cl, 0
rep stosb byte es:[edi], al
or byte [ebx + 4], 4
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jmp dword [ebp - 0x6c]
mov al, 9
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x6c]
jmp fcn.0040770c