joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017008]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10001ada
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10001150
push 0
push 0
call fcn.10006dd8
add esp, 0x18
test eax, eax
jne 0x10001ad3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100035d2
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.100035d2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x10018588], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x10018288], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x10018488], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x10018388], al
inc esi
cmp esi, 0x100
jl 0x10002540
pop esi
add esp, 0x80
ret
Function at 0x2580cf5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x2580cf6e
pop dword [ebp - 0x10]
mov eax, 0x1f69a2d8
add eax, 0x6172c96
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xef454efd
sub dword [ebp - 0x20], 0xa0f309b2
mov dword [ebp - 0x1c], 0x912a9dc8
sub dword [ebp - 0x1c], 0x5ef75183
mov dword [ebp - 0x18], 0x61d062f6
sub dword [ebp - 0x18], 0x15841ec8
mov dword [ebp - 0x14], 0xb11944f8
sub dword [ebp - 0x14], 0xb11944f8
lea eax, [ebp - 0x20]
push eax
mov eax, 0x388e6a98
add eax, 0xecf2d5cc
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x56eaa939
sub dword [ebp - 0x20], 0xe2783fe3
mov dword [ebp - 0x1c], 0x67e400e0
sub dword [ebp - 0x1c], 0x26779f6b
mov dword [ebp - 0x18], 0x26227fa3
sub dword [ebp - 0x18], 0xc2b31337
mov dword [ebp - 0x14], 0x117f33c4
add dword [ebp - 0x14], 0xee80cc3c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3e258
push 0
call eax
mov ecx, 0xa8eb71e9
add ecx, 0x5714e37f
mov ebx, eax
mov esi, 0x1d0e16b4
sub esi, 0xf78c3ab4
add esi, dword [ebp - 0x10]
mov edi, 0x7070c805
sub edi, 0x7e4ba94c
xor dword [ebp - 4], 0xe437edb3
mov edx, dword [esi]
xor edx, edi
mov dword [ebx], edx
add dword [ebp - 4], 0x2bae3fc
add ebx, 0x1ae8f80a
add ebx, 0xe51707fa
add esi, 0xcddb5eb
sub esi, 0xcddb5e7
loop 0x2580d08b
add eax, 0x2a1017f0
sub eax, 0x2a0ecf7d
mov ebx, eax
add eax, 0xbfb2f4d8
sub eax, 0xbfb2f4d3
mov ecx, 0x5bdeb217
sub ecx, 0x365eb217
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40d2a0
Capabilities:
Read .ini file
Resolve dns

Disassembly:
sub esp, 0x21c
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push str..Configps_game.ini
push 0xff
push 0x5827ce
push 0
push str.ServerName
push str.SERVER
call esi
test eax, eax
ja 0x40d2f3
mov eax, dword [str.PS_GAME]
mov ecx, dword [0x570a74]
mov dword [0x5827ce], eax
mov dword [0x5827d2], ecx
push str..Configps_game.ini
push 0xff
lea edx, [esp + 0x120]
push edx
push 0
push str.Replace
push str.LOGFILE
call esi
test eax, eax
ja 0x40d31e
mov edi, 1
jmp 0x40d330
lea eax, [esp + 0x118]
push eax
call fcn.0051ba99
add esp, 4
mov edi, eax
push str..Configps_game.ini
push 0xff
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Append
push str.LOGFILE
call esi
test eax, eax
ja 0x40d358
mov eax, 1
jmp 0x40d365
lea edx, [esp + 0x18]
push edx
call fcn.0051ba99
add esp, 4
push edi
mov edi, eax
call fcn.004e12f0
test al, al
jne 0x40d38a
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0051a8be
add esp, 0x21c
ret
mov eax, dword [0x587970]
push str.SK_Hulk
push 0x5827ce
add eax, 0xe0
push str.PS_GAME__system_log_start___s____s_
push eax
call fcn.004efdc0
add esp, 0x10
test al, al
je 0x40d371
push str..Configps_game.ini
push 0xff
lea ecx, [esp + 0x20]
push ecx
push 0
push str.PublicIP
push str.UNITED_WAR_SERVER
call esi
test eax, eax
jbe 0x40d3f2
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40d3e9
lea esi, [esp + 8]
call fcn.00408b00
mov eax, dword [esp + 0xc]
mov dword [0x5879a4], eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0051a8be
add esp, 0x21c
ret
Function at 0x40c590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2821
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x61a654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040c480
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40c5f6
push 0x400
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov byte [ebp - 0x411], 0
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d7b0
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_
lea edx, [ebp - 0x430]
push edx
call fcn.00472440
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x470]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00401400
mov ecx, dword [ebp + 8]
call fcn.0040d8c0
movzx edx, al
test edx, edx
jne 0x40c65e
xor al, al
jmp 0x40c6fc
mov eax, dword [ebp + 0x10]
push eax
push 0x5d5720
lea ecx, [ebp - 0x44c]
push ecx
call fcn.00472440
add esp, 0xc
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x478], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x478]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.00401400
mov ecx, dword [ebp + 8]
call fcn.0040d8c0
movzx ecx, al
test ecx, ecx
jne 0x40c6c3
xor al, al
jmp 0x40c6fc
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x468]
call fcn.004013c0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00401400
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e619
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov byte [ebp - 9], al
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40ca8a
push 3
push 0x80000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40caf9
cmp dword [ebp + 0xc], 0
jl 0x40cae7
push 0
push 0
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x3d4
add ecx, 0x1c98
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40cae7
push 0
lea eax, [ebp - 8]
push eax
push 0x3d4
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, 1
jne 0x40cae7
cmp dword [ebp - 8], 0x3d4
jne 0x40cae7
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 9]
test eax, eax
je 0x40caf9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [ebp - 1]
test edx, edx
je 0x40cb1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040cb30
mov ecx, dword [ebp - 0x10]
call fcn.0040ce60
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x40cb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], 0
mov byte [ebp - 6], 0
push 3
push 0xc0000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40cc5c
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x28
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, 1
jne 0x40cbcf
cmp dword [ebp - 0xc], 0x28
jne 0x40cbcf
push 0x5d5790
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040daa0
add esp, 8
test eax, eax
je 0x40cbcf
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0x13
jne 0x40cbcf
mov byte [ebp - 5], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040ca50
mov byte [ebp - 6], al
movzx edx, byte [ebp - 5]
test edx, edx
jne 0x40cbf1
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push 0
push 0
push 0x28
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe38
mov ecx, dword [ebp - 0x10]
add ecx, 0x400
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push 0
push 0xe60
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0xe38
mov edx, dword [ebp - 0x10]
add edx, 0x1238
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [ebp - 5]
test edx, edx
jne 0x40cc70
mov ecx, dword [ebp - 0x10]
call fcn.0040c7b0
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 6]
test eax, eax
jne 0x40cc87
mov ecx, dword [0x6163fc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040c830
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 6]
mov byte [edx + 0x3fc], al
mov ecx, dword [ebp - 0x10]
call fcn.0040c960
mov ecx, dword [ebp - 0x10]
call fcn.0040ce60
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40ccb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov byte [ebp - 0xd], al
mov byte [ebp - 5], 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3fc]
test edx, edx
je 0x40cd95
cmp dword [ebp + 8], 0
jne 0x40ccf5
push 3
push 0xc0000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40cd95
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x20], 0
jl 0x40cd2b
push 0
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
imul edx, edx, 0x3d4
add edx, 0x1c98
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
jmp 0x40cd55
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 0x1c98
xor edx, edx
mov ecx, 0x3d4
div ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x20], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x3d4
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
cmp eax, 1
jne 0x40cd83
cmp dword [ebp - 0xc], 0x3d4
jne 0x40cd83
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40cd95
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

Function at 0x40cda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x61a654]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 4], 0
push 3
push 0xc0000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ce49
push 0
push 0
push 0x1c98
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x3d4
lea edx, [ebp - 0x3e8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [ebp - 8], 0x3d4
jne 0x40ce3f
lea ecx, [ebp - 0x3e8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040dae0
push 0
lea edx, [ebp - 8]
push edx
push 0x3d4
lea eax, [ebp - 0x3e8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
jmp 0x40ce09
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0059e619
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 4
push 0xc0000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40cf39
push 0
lea eax, [ebp - 8]
push eax
push 0x28
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
push 0
push 0
push 0x28
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0xe38
mov edx, dword [ebp - 0x10]
add edx, 0x400
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push 0
push 0
push 0xe60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0xc]
push edx
push 0xe38
mov eax, dword [ebp - 0x10]
add eax, 0x1238
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0040ccb0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x28
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x61a654]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3fc], ecx
mov dword [ebp - 0x3f8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0xd], 0
cmp dword [ebp + 8], 0
jl 0x40d12e
push 3
push 0xc0000000
mov ecx, 0x61be48
call fcn.0040d9c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40d12e
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub eax, 0x1c98
xor edx, edx
mov ecx, 0x3d4
div ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0xc]
jge 0x40d124
mov eax, dword [ebp + 8]
imul eax, eax, 0x3d4
add eax, 0x1c98
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 1
imul ecx, ecx, 0x3d4
add ecx, 0x1c98
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x3f8]
cmp edx, dword [ebp - 4]
jae 0x40d07f
push 0
push 0
mov eax, dword [ebp - 0x3f8]
add eax, 0x3d4
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x3f4]
push edx
push 0x3d4
lea eax, [ebp - 0x3f0]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push 0
mov edx, dword [ebp - 0x3f8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x3f4]
push ecx
push 0x3d4
lea edx, [ebp - 0x3f0]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x3f8]
add ecx, 0x3d4
mov dword [ebp - 0x3f8], ecx
jmp 0x40cfec
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edx + 0x20]
cmp eax, dword [ebp + 8]
jl 0x40d120
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ecx + 0x20]
cmp edx, dword [ebp + 8]
jne 0x40d0c6
mov eax, dword [ebp - 0x3fc]
mov dword [eax + 0x20], 0
jmp 0x40d0db
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ecx + 0x20]
sub edx, 1
mov eax, dword [ebp - 0x3fc]
mov dword [eax + 0x20], edx
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x3f4]
push edx
push 0x28
mov eax, dword [ebp - 0x3fc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x3fc]
call fcn.0040ca50
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059e619
mov esp, ebp
pop ebp
ret 4
Function at 0x40d8c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c28fe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x61a654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x400]
test ecx, ecx
jne 0x40d90d
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
jmp 0x40d973
mov eax, dword [0x61be3c]
and eax, 1
jne 0x40d94b
mov ecx, dword [0x61be3c]
or ecx, 1
mov dword [0x61be3c], ecx
mov dword [ebp - 4], 0
push str.CreateDirectoryW
push str.kernel32
call fcn.0040e390
add esp, 8
mov dword [0x61be38], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x61be38], 0
jne 0x40d958
xor al, al
jmp 0x40d9a8
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x400
push edx
call dword [0x61be38]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_GetLastError]
and eax, 0xb7
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x10], 0
jne 0x40d99e
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x40d99e
mov dword [ebp - 0x1c], 0
jmp 0x40d9a5
mov dword [ebp - 0x1c], 1
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42d290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4446
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x61a654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx]
fstp dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 4]
fstp dword [edx + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 8]
fstp dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x10]
fstp dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x14]
fstp dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 0x18]
fstp dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x1c]
mov byte [eax + 0x1c], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x20]
fstp dword [eax + 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x24]
fstp dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 0x28]
fstp dword [ecx + 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x2c]
fstp dword [eax + 0x2c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x30]
fstp dword [edx + 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 0x34]
fstp dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 8]
add eax, 0x3c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00403da0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.00403da0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x74
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00403da0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x90], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
mov dword [eax + 0x94], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44fbf0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x565], 0
jne 0x44fc29
push 1
mov byte [esi + 0x568], 1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push esi
push 0
push 0x44fb80
mov byte [esi + 0x565], 1
call fcn.005a273c
add esp, 0xc
pop esi
ret

Function at 0x44fd60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x56a], 0
jne 0x44fd92
push 1
mov byte [esi + 0x56a], 1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push esi
push 0
push 0x44fd40
call fcn.005a273c
add esp, 0xc
pop esi
ret