joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a2d28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00429880
mov eax, dword [esp + 0x40]
sub eax, 0
mov dword [esp + 0x38], 0
mov edi, 0xede234
je 0x4f1b17
sub eax, 1
je 0x4f1b12
sub eax, 1
jne 0x4f1b17
mov edi, 0xf83232
jmp 0x4f1b17
mov edi, 0x4dc025
push 0
lea eax, [esp + 0x10]
push eax
push 0x3f
mov ecx, 0x69d200
call fcn.0042f6b0
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x100]
push 0xffffff
push 0
call fcn.0042dac0
mov eax, dword [esi + 0x100]
mov edx, dword [esp + 0x44]
mov dword [eax + 0x50], 0xdc
mov ecx, dword [esi + 0x100]
push edx
call fcn.0042d090
lea ecx, [esp + 0xc]
mov dword [esi + 0xfc], 1
mov dword [esp + 0x38], 0xffffffff
call fcn.00429890
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005997a8
add esp, 0x30
ret 8
mov ecx, dword [ecx + 0x280]
test ecx, ecx
je 0x4f218f
jmp 0x4f1ab0
ret 8

Function at 0x4f2180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a2d28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00429880
mov eax, dword [esp + 0x40]
sub eax, 0
mov dword [esp + 0x38], 0
mov edi, 0xede234
je 0x4f1b17
sub eax, 1
je 0x4f1b12
sub eax, 1
jne 0x4f1b17
mov edi, 0xf83232
jmp 0x4f1b17
mov edi, 0x4dc025
push 0
lea eax, [esp + 0x10]
push eax
push 0x3f
mov ecx, 0x69d200
call fcn.0042f6b0
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x100]
push 0xffffff
push 0
call fcn.0042dac0
mov eax, dword [esi + 0x100]
mov edx, dword [esp + 0x44]
mov dword [eax + 0x50], 0xdc
mov ecx, dword [esi + 0x100]
push edx
call fcn.0042d090
lea ecx, [esp + 0xc]
mov dword [esi + 0xfc], 1
mov dword [esp + 0x38], 0xffffffff
call fcn.00429890
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005997a8
add esp, 0x30
ret 8
mov ecx, dword [ecx + 0x280]
test ecx, ecx
je 0x4f218f
jmp 0x4f1ab0
ret 8
Function at 0x4f6b90
Capabilities:
Get number of processors

Disassembly:
mov ecx, dword [ecx + 0x2ac]
jmp 0x46c2b0
push 0xffffffffffffffff
push 0x59f26b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x46c459
cmp dword [ebx + 0x40], 0
lea edi, [ebp + 0x368]
mov ecx, edi
jne 0x46c3d7
call fcn.00594840
mov dword [esp + 0x30], eax
test eax, eax
je 0x46c329
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.005948a0
mov esi, dword [eax]
test esi, esi
je 0x46c329
mov eax, dword [ebx + 0x3c]
cmp dword [esi + 8], eax
je 0x46c336
cmp dword [esp + 0x30], 0
jne 0x46c308
push ebx
mov ecx, ebp
call fcn.0046b010
jmp 0x46c452
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00594840
mov dword [esp + 0x18], eax
test eax, eax
je 0x46c367
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.005948a0
mov eax, dword [eax]
cmp dword [eax + 0x40], 0
je 0x46c459
cmp dword [esp + 0x18], 0
jne 0x46c348
mov ebp, 1
push ebx
mov ecx, edi
mov dword [esi], ebp
call fcn.005940c0
add dword [esi + 4], ebp
push 0x48
call fcn.00599902
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
test eax, eax
je 0x46c39c
mov ecx, eax
call fcn.004fb100
jmp 0x46c39e
xor eax, eax
mov edx, dword [ebx + 0x3c]
mov ecx, edx
imul ecx, ecx, 0x64
add ecx, 0x63
mov dword [eax + 0x44], ecx
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], 0x63
call fcn.00594150
mov eax, dword [esp + 0x14]
add dword [esi + 4], ebp
add dword [eax + 0x364], ebp
mov ebp, eax
jmp 0x46c452
call fcn.00594840
mov dword [esp + 0x1c], eax
test eax, eax
je 0x46c44a
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.005948a0
mov esi, dword [eax]
test esi, esi
je 0x46c44a
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x3c]
je 0x46c407
cmp dword [esp + 0x1c], 0
jne 0x46c3e4
jmp 0x46c44a
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00594870
mov ebp, eax
test ebp, ebp
je 0x46c446
mov ecx, edi
call fcn.005947b0
mov eax, dword [eax]
cmp dword [eax + 0x40], 0x63
push ebx
mov ecx, edi
jne 0x46c438
push ebp
call fcn.00594440
inc dword [esi + 4]
mov ebp, dword [esp + 0x14]
jmp 0x46c452
call fcn.00594150
inc dword [esi + 4]
mov ebp, dword [esp + 0x14]
jmp 0x46c452
mov ebp, dword [esp + 0x14]
push ebx
mov ecx, ebp
call fcn.0046b120
mov ecx, ebp
call fcn.0046bed0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov ecx, dword [0x6939dc]
jmp 0x46a940
Function at 0x4fb910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3798
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004fb830
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esi], vtable.CQuestLimitKind_Level.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x4fb9b7
mov ecx, edi
call fcn.00594e40
mov ebx, dword [sym.imp.MSVCR90.dll_atol]
push eax
call ebx
add esp, 4
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.00594e40
push eax
call ebx
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, 0x63
mov eax, esi
jne 0x4fba14
mov dword [esi + 0x14], 0x96
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
cmp eax, 1
jne 0x4fb9cf
mov ecx, edi
call fcn.00594e40
push eax
call dword [sym.imp.MSVCR90.dll_atol]
mov dword [esi + 0x14], eax
jmp 0x4fba0f
cmp eax, 4
jne 0x4fb9f9
mov ecx, edi
call fcn.00594e40
mov ebx, dword [sym.imp.MSVCR90.dll_atol]
push eax
call ebx
add esp, 4
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.00594e40
push eax
call ebx
mov dword [esi + 0x14], eax
jmp 0x4fba0f
cmp eax, 5
jne 0x4fba12
mov ecx, edi
call fcn.00594e40
push eax
call dword [sym.imp.MSVCR90.dll_atol]
mov dword [esi + 0x10], eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10

Function at 0x4fe890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3a78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 0x565
call edx
mov dword [esi + 0x29c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 0x566
mov ecx, esi
call edx
lea ecx, [esp + 8]
mov dword [esi + 0x2a0], eax
call fcn.00429880
push 0
lea eax, [esp + 0xc]
push eax
push 0x3f
mov ecx, 0x69d200
mov dword [esp + 0x3c], 0
call fcn.0042f6b0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00429890
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x500430
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
add eax, 0xb4d61
push eax
push eax
mov dword [ecx + 0x18], eax
push 0
mov ecx, 0x6e4cb0
call fcn.0056c9a0
push eax
lea eax, [esp + 0xc]
push str._sData_d_d.UII
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005997a8
add esp, 0x108
ret 4
Function at 0x5004a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x500562
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push esi
call edi
test eax, eax
je 0x5004f5
cmp dword [esp + 0x20], 0x6060801
je 0x500505
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
push esi
test eax, eax
je 0x5004f6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x500561
mov ecx, dword [0x69e254]
test ecx, ecx
je 0x500561
mov edx, dword [esp + 0x14]
push edx
call fcn.00498bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x69e254]
push eax
call fcn.00498220
fld dword [esp + 0x18]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x6e4470
call fcn.0055d940
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x500570
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x69e254]
sub esp, 0x14
test ecx, ecx
je 0x500604
push esi
call fcn.00498ba0
fld dword [0x6e44b0]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x69e254]
mov cx, word [eax + 0x6d8]
fstp dword [esp + 0x24]
push 0
push 0x40000000
push edx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x500603
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x6060801
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0xc
lea eax, [esp + 0x1c]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x5014c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, ecx
test ebx, ebx
je 0x5015a9
push ebp
push edi
push 0
mov ecx, 0x6e4cb0
call fcn.0056c9a0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x14]
push str._sData
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
mov edx, dword [esi + 0x18]
push edx
push 0
mov ecx, 0x6e4cb0
call fcn.0056c9a0
push eax
lea eax, [esp + 0x18]
push str._sData_d
push eax
call edi
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
test bl, 1
je 0x501575
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e4cb0
call fcn.0056c9a0
push eax
lea edx, [esp + 0x1c]
push str._sData_d_d.UII
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00500e30
test bl, 2
je 0x5015a7
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e4cb0
call fcn.0056c9a0
push eax
lea ecx, [esp + 0x1c]
push str._sData_d_d.UIS
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00500570
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.005997a8
add esp, 0x108
ret 4
Function at 0x51c100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
mov eax, dword [edi + 0xa0c]
xor ecx, ecx
cmp eax, ecx
je 0x51c12e
cmp dword [edi + 0xa10], ecx
je 0x51c133
push 0x5be2fc
push 0x1a
push 0x6a0f60
call fcn.004d8020
add esp, 0xc
pop edi
add esp, 0x18
ret
cmp eax, ecx
mov dword [edi + 0xa10], ecx
mov dword [esp + 4], ecx
jle 0x51c1c4
push ebx
push ebp
push esi
lea ebp, [edi + 0x2a0]
mov ebx, 1
cmp dword [ebp], 0
je 0x51c1ac
xor eax, eax
jmp 0x51c160
mov edx, dword [ebp]
mov ecx, dword [0x69e248]
lea esi, [eax + 1]
mov dword [esp + 0x1c], edx
mov eax, esi
cdq
mov dword [esp + 0x20], eax
push 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, 0x68ec10
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 3
mov byte [esp + 0x1f], 0x62
mov dword [esp + 0x2c], edx
call fcn.00525390
add dword [edi + 0xa10], ebx
mov eax, esi
cmp eax, 2
jl 0x51c160
mov eax, dword [esp + 0x10]
add eax, ebx
add ebp, 0x20
cmp eax, dword [edi + 0xa0c]
mov dword [esp + 0x10], eax
jl 0x51c153
pop esi
pop ebp
pop ebx
cmp dword [edi + 0xa10], 0
jne 0x51c12e
cmp dword [edi + 0xa0c], 0
je 0x51c12e
mov ecx, edi
pop edi
add esp, 0x18
jmp fcn.0051b8a0

Function at 0x520ac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov dword [eax], 0
push edi
mov dword [eax], 0
mov dword [eax + 0xcc], 0
mov edx, 0xda1f20ba
lea ecx, [eax + 8]
mov edi, 0xa
lea esi, [edx - 1]
xor esi, dword [eax]
add ecx, 0x14
mov dword [ecx - 0x18], esi
add dword [eax + 0xcc], esi
mov esi, dword [eax]
xor esi, edx
mov dword [ecx - 0x14], esi
add dword [eax + 0xcc], esi
lea esi, [edx + 1]
xor esi, dword [eax]
mov dword [ecx - 0x10], esi
add dword [eax + 0xcc], esi
lea esi, [edx + 2]
xor esi, dword [eax]
mov dword [ecx - 0xc], esi
add dword [eax + 0xcc], esi
lea esi, [edx + 3]
xor esi, dword [eax]
add edx, 5
mov dword [ecx - 8], esi
add dword [eax + 0xcc], esi
sub edi, 1
jne 0x520ae7
mov ecx, dword [eax + 0xcc]
xor dword [eax], ecx
pop edi
pop esi
ret
Function at 0x5213b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x52156b
push 0x5af344
push edi
call dword [sym.imp.MSVCR90.dll_fopen]
mov ecx, esi
add esp, 8
sub ecx, edi
mov dword [esi + 4], eax
mov eax, edi
lea edx, [ecx + 0x294]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5213e1
cmp dword [esi + 4], ebx
je 0x52156b
mov eax, dword [esi + 0x28c]
cmp eax, ebx
je 0x52140d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x28c], ebx
mov edx, dword [esi + 4]
push ebp
push edx
push 1
lea eax, [esi + 0x18]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x290], ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push 0x270
push eax
call ebx
add esp, 0x10
lea ebp, [esi + 0x288]
mov edi, 3
lea esp, [esp]
mov ecx, dword [esi + 4]
push ecx
push 1
push 1
push ebp
call ebx
add esp, 0x10
sub edi, 1
jne 0x521440
xor ecx, ecx
xor edx, edx
lea eax, [esi + 0x1c0]
mov edi, 0x19
add ecx, dword [eax - 4]
add edx, dword [eax]
add eax, 8
sub edi, 1
jne 0x521462
mov eax, dword [esi + 0x284]
add ecx, edx
cmp ecx, eax
jne 0x521515
mov edx, dword [esi + 0x1b8]
xor edx, eax
je 0x521515
xor ecx, ecx
xor edx, edx
lea eax, [esi + 0x1c0]
mov edi, 0x19
lea esp, [esp]
add ecx, dword [eax - 4]
add edx, dword [eax]
add eax, 8
sub edi, 1
jne 0x5214a0
add ecx, edx
mov edx, dword [esi + 0x284]
cmp ecx, edx
je 0x5214bd
xor eax, eax
jmp 0x5214c5
mov eax, dword [esi + 0x1b8]
xor eax, edx
push eax
call fcn.00599644
add esp, 4
xor edx, edx
mov dword [esi + 0x28c], eax
xor edi, edi
lea ecx, [esi + 0x1c0]
mov ebp, 0x19
add edx, dword [ecx - 4]
add edi, dword [ecx]
add ecx, 8
sub ebp, 1
jne 0x5214e3
add edx, edi
mov edi, dword [esi + 0x284]
cmp edx, edi
je 0x521500
xor ecx, ecx
jmp 0x521508
mov ecx, dword [esi + 0x1b8]
xor ecx, edi
mov edx, dword [esi + 4]
push edx
push ecx
push 1
push eax
call ebx
add esp, 0x10
lea ebp, [esi + 0x289]
mov edi, 3
mov eax, dword [esi + 4]
push eax
push 1
push 1
push ebp
call ebx
add esp, 0x10
sub edi, 1
jne 0x521520
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00520bb0
pop ebp
test eax, eax
je 0x52156b
mov ecx, esi
call fcn.00520d20
test eax, eax
je 0x52156b
mov eax, 1
pop edi
mov dword [esi + 0x290], eax
pop esi
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x5251e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x114
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x18]
push edi
mov ebp, ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x525208
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR90.dll_isalpha]
add esp, 4
test eax, eax
je 0x5252fc
push 0x100
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x525255
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Error:__u_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
xor eax, eax
jmp 0x525320
mov edi, dword [sym.imp.MSVCR90.dll_printf]
lea edx, [esp + 0x1c]
push edx
push str.hostname_s_n
call edi
add esp, 8
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x525291
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Error:__u_n
call edi
add esp, 8
xor eax, eax
jmp 0x525320
movsx ecx, word [esi + 0xa]
movsx edx, word [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
call edi
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 0x14
cmp dword [eax], edi
je 0x5252fc
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
lea esp, [esp]
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x24]
push 0x5acee4
push eax
call ebx
mov ecx, dword [esi + 0xc]
inc edi
lea eax, [ecx + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x5252c0
pop ebx
mov ecx, dword [esp + 0x128]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp + 0x14], eax
mov eax, ecx
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005997a8
add esp, 0x114
ret 8
Function at 0x5269e0
Capabilities:
Get file size

Disassembly:
sub esp, 0x3a0
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x39c], eax
push esi
mov esi, dword [esp + 0x3b0]
push edi
mov edi, dword [esp + 0x3ac]
push 0x1ff
lea eax, [esp + 0x1a9]
push 0
push eax
mov byte [esp + 0x1b0], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x526a4b
mov ecx, dword [esp + 0x3b0]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push ecx
push edi
lea edx, [esp + 0x1b0]
push str._s_line:_d__msg:_s_
push edx
call esi
add esp, 0x14
jmp 0x526a6c
mov eax, dword [esp + 0x3b0]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
push edi
lea ecx, [esp + 0x1ac]
push str._s_line:_d_
push ecx
call esi
add esp, 0x10
push 0xff
lea edx, [esp + 0xa9]
push 0
push edx
mov byte [esp + 0xb0], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x12]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0xb0]
push str.._Log_Debug__4d_02d_02d.txt
push ecx
call esi
add esp, 0x14
cmp dword [0x6a5290], 0
jne 0x526b6f
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x526b41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xa4]
push 0x5bf440
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x526b6f
call fcn.00526230
push eax
lea edx, [esp + 0x1a8]
push edx
push str._stime:_s_n
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.005997a8
add esp, 0x3a0
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 8]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
jbe 0x526aea
mov dword [0x6a5290], 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
xor ecx, esp
call fcn.005997a8
add esp, 0x3a0
ret
Function at 0x527110
Capabilities:
Get file size

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x29c], eax
cmp dword [0x6a5048], 0
mov ecx, dword [esp + 0x2a4]
mov eax, dword [esp + 0x2ac]
je 0x52718b
push eax
mov eax, dword [esp + 0x2ac]
push eax
push ecx
push 0x5bf3e0
push 0x6a4f48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x6a4f48
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x5272ce
int3
mov edx, dword [esp + 0x2a8]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
test eax, eax
je 0x5271b4
push eax
push edx
push ecx
lea eax, [esp + 0x1ac]
push str._s_line:_d__msg:_s_
push eax
call esi
add esp, 0x14
jmp 0x5271c8
push edx
push ecx
lea eax, [esp + 0x1a8]
push str._s_line:_d_
push eax
call esi
add esp, 0x10
push 0xff
lea ecx, [esp + 0xa5]
push 0
push ecx
mov byte [esp + 0xac], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0xac]
push str.._Log_Assert__4d_02d_02d.txt
push eax
call esi
add esp, 0x14
cmp dword [0x6a52b4], 0
jne 0x5272cd
push edi
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x52729e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xa4]
push 0x5bf440
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x5272cc
call fcn.00526230
push eax
lea ecx, [esp + 0x1a8]
push ecx
push str._stime:_s_n
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.005997a8
add esp, 0x2a0
ret
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 8]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
jbe 0x527247
mov dword [0x6a52b4], 1
pop edi
pop esi
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.005997a8
add esp, 0x2a0
ret