joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430c0d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x430c97
cmp dword [esi + 0x10], 0
je 0x430c97
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00480540
mov ebx, esp
test ebx, ebx
je 0x430c97
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00425b0f
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.0042b2e8
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00428109
test al, al
je 0x430c97
mov ecx, dword [esi + 0x10]
call fcn.0042cf55
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4312e4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042e5cc
mov ecx, dword [ebx + 0x6d8]
test ecx, ecx
je 0x431368
lea eax, [ebp - 0x14]
push eax
call fcn.004301cd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6d8]
test eax, eax
je 0x431344
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x431368
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 0x14
Function at 0x439e62
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x694], edi
je 0x439ece
cmp dword [ebp + 8], 0x100
jne 0x439ebd
cmp word [ebp + 0xc], 0xd
jne 0x439ebd
cmp byte [esi + 0x69a], 0
je 0x439ea2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x439ebd
cmp byte [esi + 0x69b], 0
jne 0x439ebd
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x439eb9
push 1
push edi
push edi
push edi
push str.return
push esi
call fcn.0042b2e8
xor eax, eax
jmp 0x439ed1
mov eax, dword [esi + 0x694]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x43a2a1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43a357
movzx eax, word [esi]
test ax, ax
je 0x43a357
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x43a2e1
cmp ax, 0x5c
jne 0x43a2e3
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43a2d5
cmp edi, esi
je 0x43a32a
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0047fc7f
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x43a367
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043a2a1
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0047fb5a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0047fb2b
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd24
mov esp, ebp
pop ebp
ret
call fcn.00482148
int3

Function at 0x43aa15
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x43aa91
cmp dword [edi + 4], 0xffffffff
jne 0x43aa91
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4d3754
push esi
call fcn.0047fb2b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x43aa63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43aa63
mov eax, 0x2000000
jmp 0x43aa96
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043cf1b
add esp, 0x10
test eax, eax
jne 0x43aa81
mov eax, dword [ebp - 4]
jmp 0x43aa96
push eax
call fcn.0043d622
mov dword [edi], eax
mov eax, dword [0x4e90a8]
pop ecx
jmp 0x43aa96
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d028
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x43d05c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d057
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x43d083
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x43d06c
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0047d190
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x43d1f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43d204
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x43d2bf
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
dec edi
jne 0x43d222
pop edi
test esi, esi
je 0x43d2d8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4be258]
inc edx
dec esi
jne 0x43d2c3
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x43e2a9
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4b5cbe
call fcn.0047fa2d
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0043e63c
call fcn.00427f34
push eax
lea ecx, [ebp - 0x94]
call fcn.0042599d
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00427f3a
mov ecx, eax
call fcn.00426202
test al, al
je 0x43e3bf
push ebx
lea ecx, [ebp - 0x94]
call fcn.00425c9f
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.004260a5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x43e330
push str.Error_opening_file
jmp 0x43e4a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43e439
cmp edi, 0x400000
ja 0x43e44a
and dword [ebp - 0x2c8], 0
push edi
call fcn.004777e0
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x43e3a8
push ebx
call fcn.0047e441
pop ecx
mov ecx, esi
call fcn.0043e63c
push 0
push str.Could_not_read_file
jmp 0x43e4a0
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0043e4ef
push dword [ebp - 0x2cc]
jmp 0x43e4ce
call fcn.00427f3a
push eax
lea ecx, [ebp - 0x94]
call fcn.00425c1a
call fcn.004280fc
test al, al
je 0x43e3e0
call fcn.00427f40
jmp 0x43e3f7
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004260a5
push eax
call fcn.0043aa9d
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x43e408
push eax
push str.Error_opening_zip_file
jmp 0x43e4a0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0043a3f5
add esp, 0x14
test eax, eax
je 0x43e42f
push 0
push str.Could_not_find_ziped_file
jmp 0x43e4a0
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x43e442
push 0
push str.File_is_empty
jmp 0x43e4a0
cmp ebx, 0x400000
jbe 0x43e453
push 0
push str.File_too_large
jmp 0x43e4a0
push ebx
call fcn.004777e0
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0043ae52
add esp, 0x18
test eax, eax
je 0x43e4ab
cmp eax, 0x600
je 0x43e4ab
push dword [ebp - 0x2c8]
call fcn.0047e441
pop ecx
call fcn.004280fc
test al, al
jne 0x43e499
push edi
call fcn.0043a257
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0043e664
mov bl, al
jmp 0x43e4d6
call fcn.004280fc
test al, al
jne 0x43e4bb
push edi
call fcn.0043a257
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0043e4ef
push edi
mov bl, al
call fcn.0047e441
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00425a85
mov al, bl
call fcn.0047f9eb
ret 8
Function at 0x44b7d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x44b7f8
cmp dword [esi + 8], edi
jge 0x44b7f0
push esi
call fcn.00447bdc
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x44b81e
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x44b804
mov dword [esi + 8], edx
jmp 0x44b833
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x44b829
xor dl, dl
jmp 0x44b82e
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x44b81e
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x44b86d
push str.zlib_corrupt
call fcn.00447b05
add esp, 4
jmp 0x44b8ad
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x44b87d
push str.read_past_buffer
jmp 0x44b863
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x44b897
push edi
push ecx
push esi
call fcn.0044e33b
add esp, 0xc
test eax, eax
je 0x44b8ad
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0047d190
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x45eaf2
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x4b6862
call fcn.0047fa2d
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], ebx
cmp dword [edi + 4], ebx
jne 0x45eb84
lea eax, [ebp - 0xa8]
push eax
call fcn.0045e75f
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00405b70
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00425166
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.0044353a
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.00427ac5
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00426202
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00425a85
mov esi, 0x6d8
test bl, bl
je 0x45ebc3
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.0047f9eb
ret 4

Function at 0x45ebf9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042d03b
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x45ec75
lea eax, [ebp - 0x14]
push eax
call fcn.0045e75f
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x45ec51
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45ec75
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ed5d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042e5cc
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x45ede1
lea eax, [ebp - 0x14]
push eax
call fcn.0045e75f
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x45edbd
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45ede1
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00405ba0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 0x14
Function at 0x461c0d
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4b6a3d
call fcn.0047fa2d
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
call fcn.00427f34
push eax
lea ecx, [ebp - 0x94]
call fcn.0042599d
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00427f3a
mov ecx, eax
call fcn.00426202
test al, al
je 0x461d04
push ebx
lea ecx, [ebp - 0x94]
call fcn.00425c9f
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.004260a5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x461c9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00425a85
jmp 0x461de5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x461cb5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x461c8a
push esi
mov dword [ebp - 0x2cc], edi
call fcn.004777e0
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x461dd0
push edi
call fcn.0047e441
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00425a85
jmp 0x461de3
call fcn.00427f3a
push eax
lea ecx, [ebp - 0x94]
call fcn.00425c1a
call fcn.004280fc
test al, al
je 0x461d25
call fcn.00427f40
jmp 0x461d3c
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004260a5
push eax
call fcn.0043aa9d
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x461c8a
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.0043a3f5
add esp, 0x14
test eax, eax
jne 0x461c8a
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x461c8a
push esi
call fcn.004777e0
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0043ae52
add esp, 0x18
test eax, eax
je 0x461dc0
cmp eax, 0x600
je 0x461dc0
push edi
call fcn.0047e441
pop ecx
call fcn.004280fc
test al, al
jne 0x461cf0
push ebx
call fcn.0043a257
jmp 0x461cef
call fcn.004280fc
test al, al
jne 0x461dd0
push ebx
call fcn.0043a257
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00425a85
test edi, edi
jne 0x461e60
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x461e5c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x461e1f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x461e5c
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004777e0
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x461e58
push edi
call fcn.0047e441
pop ecx
xor edi, edi
test edi, edi
jne 0x461e60
xor eax, eax
jmp 0x461e78
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00461e80
push edi
mov esi, eax
call fcn.0047e441
pop ecx
mov eax, esi
call fcn.0047f9eb
ret 4
Function at 0x462580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6b28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4e9201], 0
mov esi, dword [ebp + 0xc]
je 0x4625f7
cmp dword [esi + 0x14], 0x10
jb 0x4625c0
mov eax, dword [esi]
jmp 0x4625c2
mov eax, esi
push eax
lea eax, [ebp - 0x28]
push str._log___s_n
push eax
call fcn.00463190
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
jb 0x4625f7
push dword [ebp - 0x28]
call fcn.0047c598
add esp, 4
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00462b80
add esp, 8
mov eax, dword [0x4e920c]
mov dword [ebp - 4], 0
test eax, eax
jne 0x46263c
push 0x18
call fcn.0047c547
add esp, 4
mov dword [0x4e920c], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x4e920c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00471730
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x462663
push eax
push eax
call fcn.004621e0
add esp, 8
push dword [0x4e920c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00471730
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x462691
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x462691
cmp ecx, 3
ja case.default.0x462691
jmp dword [ecx*4 + 0x4626ec]
push esi
mov ecx, edi
call fcn.00471210
jmp case.default.0x462691
push esi
mov ecx, edi
call fcn.00471800
jmp case.default.0x462691
push esi
mov ecx, edi
call fcn.00471cd0
jmp case.default.0x462691
push esi
mov ecx, edi
call fcn.00471550
cmp dword [ebp - 0x2c], 0x10
jb 0x4626cf
push dword [ebp - 0x40]
call fcn.0047c598
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret
Function at 0x462f80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6c50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00463b00
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x46315b
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00402bb0
call fcn.004633c0
add esp, 0x18
test al, al
je 0x462fff
mov bl, 1
jmp 0x46315d
call fcn.00463730
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e3f0
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x46304c
cmp dword [ebp + 0x1c], 8
jb 0x46302f
push dword [ebp + 8]
call fcn.0047c598
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00405490
cmp dword [ebp - 0x14], 8
jb 0x46305d
push dword [ebp - 0x28]
call fcn.0047c598
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.004635d0
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x46310d
cmp ecx, esi
jbe 0x463151
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x463104
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00404bb0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00402bb0
call fcn.004633c0
add esp, 0x18
test al, al
jne 0x4630ec
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x463101
push dword [ebp - 0x28]
call fcn.0047c598
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x463087
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00402bb0
call fcn.004633c0
add esp, 0x18
test al, al
je 0x46315b
mov bl, 1
jmp 0x46315d
push str.invalid_string_position
call fcn.0047773e
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x46316e
push dword [ebp + 8]
call fcn.0047c598
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret
Function at 0x4633c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6cb8
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x4e4520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.004635d0
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x46341e
push dword [ebp + 8]
call fcn.0047c598
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret