joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4688a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x46894a
cmp dword [ebx + 0x90], 0
jne 0x468944
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x468820
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x468944
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x46890a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x468944
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418fc0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x468919
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x468b68
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x48817c]
cmp dword [eax + 0x170], 0
je 0x468ccd
test bl, bl
jne 0x468c1b
cmp dword [esi + 0x98], 0
jne 0x468c10
mov eax, esi
call fcn.0046b6a8
push eax
push 0x468a74
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x468be1
mov eax, dword [0x48817c]
cmp byte [eax + 0xcf], 0
je 0x468be1
mov eax, dword [esi + 0xd4]
call fcn.004062b0
mov edi, eax
cmp edi, 0
jl 0x468be1
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x468bca
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x468c10
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418fc0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x468bf0
inc dword [esi + 0x98]
jmp 0x468ccd
cmp dword [esi + 0x98], 0
jle 0x468ccd
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x468ccd
cmp dword [esi + 0x40], 0
je 0x468c78
mov eax, dword [0x48817c]
cmp byte [eax + 0xcf], 0
je 0x468c78
mov eax, dword [esi + 0xd4]
call fcn.004062b0
mov edi, eax
cmp edi, 0
jl 0x468c78
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x468c61
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x468ca7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418fc0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x468c87
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x45e49c]
call fcn.00406470
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x469888
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4698f3
cmp byte [ebx + 0xcf], 0
jne 0x4698f3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405598
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4698e0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x469900
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040545c
jmp 0x469900
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040545c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x46ae68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x46aed6
mov eax, esi
call fcn.00451870
test al, al
je 0x46aed6
mov eax, dword [ebx + 0x80]
call fcn.004514c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46aed6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x46aeca
push 0
mov eax, dword [ebx + 0x80]
call fcn.004514c4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00448b0c
jmp 0x46aed6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0046acb4
pop esi
pop ebx
ret
Function at 0x46db3c
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
push 0x46dd3c
call fcn.0046bdf0
cmp eax, 0x24
jle 0x46db50
xor ebx, ebx
push 0x4005
push 0x9579d7ae
push 0xfe04d323
call fcn.0046cf6c
cmp eax, 0xf7a71c64
je 0x46db6d
xor esi, esi
push 0x5e644a38
call fcn.0047f458
cmp eax, 0x3d
jle 0x46db84
mov edi, dword [0x482d84]
mov edi, dword [edi]
push 0x1d8b5b6a
call fcn.0047f458
cmp eax, 0x57
jle 0x46dc9b
jmp 0x46dc91
push 0x1866768d
push 0x625c76e8
push 0x46dd4c
call fcn.0046c2d4
cmp eax, 0xa3a08e2d
je 0x46dbd0
push 0x4a1b30d1
push 0x55f613c2
push 0x46dd4c
call fcn.0046c2d4
cmp eax, 0x21
jg 0x46dbe5
push 0x46dd6c
call fcn.0046bdf0
cmp eax, 0xcd6f08fe
je 0x46dc6e
cmp word [edi], 0x20
je 0x46dc4a
push 0x4004
push 0xe150d6a6
push 0xc048aff2
call fcn.0046cf6c
cmp eax, 0xc3f78509
je 0x46dc6e
cmp word [edi], 0x22
jne 0x46dc0f
inc esi
jmp 0x46dc6e
push 0x3e289d3f
push 0x5b284372
push 0x46dd80
call fcn.0046c2d4
cmp eax, 0xb
jle 0x46dc6e
push 0x3505f3ab
push 0x6f192c54
push 0x46dd80
call fcn.0046c2d4
cmp eax, 0x27
jle 0x46dc6e
cmp esi, 2
jl 0x46dc6e
mov bl, 1
jmp 0x46dc6e
push 0x5c664422
push 0x4c688806
push 0x46dd8c
call fcn.0046c2d4
cmp eax, 0xb3580a87
je 0x46dc6e
test esi, esi
jne 0x46dc6e
mov esi, 2
push 0x98
call fcn.0046bf58
cmp eax, 0xcaa273e3
jne 0x46dc8e
push 0xb4
call fcn.0046bf58
cmp eax, 0x12
jle 0x46dc91
add edi, 2
cmp word [edi], 0
jne 0x46db9c
push 0xe2
call fcn.0046bf58
cmp eax, 0xc
jle 0x46dcb9
push 0x5359b81f
call fcn.0047f458
cmp eax, 0x3f
jg 0x46dd29
push 0xe6
call fcn.0046bf58
cmp eax, 0xfc62223b
jne 0x46dd29
push dword [0x407934]
mov eax, 0x407af8
test eax, eax
push dword [0x407a38]
mov eax, sub.kernel32.dll_ResumeThread
mov edx, dword [0x482ac8]
mov dword [edx], eax
push 0x64
call fcn.0046bf58
cmp eax, 0x3b
jg 0x46dd03
mov eax, 0x407aa0
mov edx, dword [0x482d6c]
mov dword [edx], eax
mov eax, 0x407904
cmp eax, 0x76de4a14
jne 0x46dd1c
mov eax, 0x407a20
mov edx, dword [0x482ac8]
mov dword [edx], eax
mov eax, 0x407934
mov edx, dword [0x482d50]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
push edi
mov edi, ecx
mov esi, dword [edi + 0xbc]
mov ecx, dword [edi + 0x1c]
add esi, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x4018ae
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
test al, 4
je 0x4018c2
test byte [ecx + 0x3a], 1
je 0x4018e2
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
or dword [esi + 0x10], 0x200
test byte [ecx + 0x3a], 2
je 0x4018e2
mov eax, dword [ecx + 0x46]
or dword [esi + 0x10], 0x400
mov dword [esi + 0x14], eax
test dword [edi + 0x78], 0x400
je 0x4018f2
or dword [esi + 0x10], 0x4000
test byte [ecx + 0x3a], 4
je 0x4018ff
or dword [esi + 0x10], 0x100
test byte [ebx + 6], 2
mov edx, 1
je 0x401927
or dword [esi + 0x10], 0x80
mov word [esi + 0x20], dx
cmp word [edi + 0x18], 3
jne 0x40192c
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40192c
or word [esi + 0x20], 0x20
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x18], eax
cmp word [esi + 0x18], 0xd
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x1c], eax
jne 0x401993
movsx edx, word [ecx]
mov ecx, dword [0x4b49cc]
cmp edx, dword [ecx + 0x194]
jge 0x401989
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4b49cc]
mov ecx, dword [eax + 0x1a0]
mov eax, dword [eax + 0x19c]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x401989
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401989
mov edx, dword [edx + 0xc]
call fcn.00434f00
jmp 0x40198b
xor eax, eax
mov dword [esi + 0x1c], eax
mov edx, 1
cmp dword [edi + 0xcc], 0
jne 0x4019a5
or word [esi + 0x20], 2
or dword [esi + 0x10], 8
mov cx, word [esi + 0x10]
pop edi
mov word [esi + 0x22], cx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x403210
Capabilities:
Get geographical location

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov word [esi], ax
test edx, edx
je 0x40329e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push eax
push eax
movzx ebx, dx
push 0x59
push ebx
call edi
cmp eax, 0x63
jge 0x40329c
push eax
push esi
push 0x59
push ebx
call edi
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x403241
mov eax, dword [0x492d68]
mov dword [edi], eax
mov edi, esi
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403260
push 0
push 0
push 0x5a
sub edi, ecx
push ebx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, 0x63
sub ecx, edi
cmp eax, ecx
jge 0x403297
push eax
lea eax, [esi + edi*2]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40329c
xor eax, eax
mov word [esi], ax
pop edi
pop ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4032a1
sub esi, ecx
sar esi, 1
mov eax, esi
pop esi
ret
Function at 0x404940
Capabilities:
Check os version
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aad0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404a03
cmp dword [ebp - 0x118], 2
jne 0x404a03
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x4049ab
jne 0x404a03
cmp dword [ebp - 0x120], 1
jbe 0x404a03
push 0x492d6c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404a03
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmDisableIME
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4049fc
push str.ImmIsIME
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4049f8
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x4049f8
push eax
call ebx
test eax, eax
je 0x4049fc
push 0xffffffffffffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046d696
mov esp, ebp
pop ebp
ret
Function at 0x4076d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076e0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.0046def4
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4077a0
mov ecx, ebx
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x407710
push 0x5c
push ebx
call fcn.0046f78f
add esp, 8
test eax, eax
je 0x407734
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40775d
cmp word [ebx + 2], 0x5c
jne 0x40775d
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.0046f835
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x407780
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x407776
cmp word [ebx + 2], 0x3a
jne 0x407773
cmp word [ebx + 4], 0x5c
jne 0x407773
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x407776
push 0x5c
push ebx
call fcn.0046f835
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4077aa
push dword [ebp - 4]
call fcn.0046d737
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x407817
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0046f8e3
push esi
call fcn.0046f926
add esp, 0x10
test eax, eax
je 0x4077f3
push esi
call fcn.0046fa43
add esp, 4
test eax, eax
je 0x4077e0
mov edi, 1
jmp 0x4077f3
push esi
call fcn.0046f926
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.0046f835
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40788b
mov ecx, dword [ebp - 8]
test edi, edi
je 0x4077b1
jmp 0x40788b
mov edx, esi
sub edx, dword [ebp - 4]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407820
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407834
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x407857
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x407857
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.0046f926
add esp, 4
test eax, eax
je 0x40788b
push esi
call fcn.0046fa43
add esp, 4
test eax, eax
je 0x407878
mov edi, 1
jmp 0x40788b
push esi
call fcn.0046f926
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.0046d737
push dword [ebp - 4]
call fcn.0046d737
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4078b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4078df
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
neg eax
sbb eax, eax
add eax, 0x40000002
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
jne 0x4078f0
mov eax, 0x40000001
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, dword [ebp + 8]
mov edx, 0x40000002
cmovne eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x407910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407942
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
add eax, 0x40000004
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], esi
mov ecx, 0x40000004
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4079a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
push 1
push 0x8000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
xor esi, esi
call fcn.0046def4
add esp, 8
mov dword [ebp - 4], eax
test edi, edi
je 0x407a63
lea ecx, [ecx]
push 0
mov ebx, 0x8000
cmp edi, ebx
cmovb ebx, edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407a5b
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x407a65
cmp eax, ebx
jne 0x407a65
mov ecx, ebx
shr ecx, 2
mov edx, edi
test ecx, ecx
je 0x407a21
lea esp, [esp]
mov eax, esi
shr eax, 0x1f
add edx, 4
lea esi, [eax + esi*2]
add esi, dword [edx - 4]
dec ecx
jne 0x407a10
mov eax, ebx
and eax, 3
mov dword [ebp - 0x14], eax
mov edi, 0
jbe 0x407a48
mov ebx, eax
movzx ecx, byte [edi + edx]
mov eax, esi
shr eax, 0x1f
add ecx, eax
inc edi
lea esi, [ecx + esi*2]
cmp edi, ebx
jb 0x407a32
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], edi
jne 0x4079d0
mov edi, dword [ebp - 4]
jmp 0x407a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a65
mov edi, eax
push 0x8000
push 0
push edi
call fcn.00472480
push edi
call fcn.0046d737
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 0
push 0
mov ebx, ecx
push 0x186a0
push ebx
mov dword [ebp - 8], 0
call esi
push 1
push 0
push 0
push ebx
call esi
push 2
push 0
push 0
push ebx
mov edi, eax
call esi
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov esi, eax
call edi
cmp esi, 0x155cc0
jge 0x407b04
push 1
push 0
push 0
push ebx
call edi
push 2
push 0
push 0
push ebx
mov esi, eax
call edi
push 0
push 0
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407b09
mov edi, 0x155cc0
lea eax, [edi + 8]
push 1
push eax
call fcn.0046def4
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x407b95
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
je 0x407b82
cmp dword [esi], 0x77777777
jne 0x407b54
cmp dword [ecx + eax + 4], 0x12478749
je 0x407b6d
inc eax
inc esi
cmp eax, edi
jb 0x407b42
push ecx
call fcn.0046d737
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, ecx
add esi, 0x186a0
mov dword [0x4b4884], esi
mov dword [ebp - 8], 1
push ecx
call fcn.0046d737
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [0x4b487c]
push edi
push 2
push 0x104
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x4080c7
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x492db4
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0046d737
mov esi, dword [0x4b487c]
add esp, 4
cmp word [esi], 0
je 0x4080f8
push esi
call fcn.0046f1b3
add esp, 4
push 0
push dword [0x4b487c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4080f8
mov ecx, dword [0x4b487c]
call fcn.004250f0
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 0x67
pop esi
ret
Function at 0x4081c0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b4b60]
test eax, eax
je 0x4081f3
cmp dword [0x4b4b5c], 0
je 0x4081e2
push eax
mov ecx, 0x4b4c94
call fcn.00462360
mov eax, dword [0x4b4b60]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4b4b60], 0
mov eax, dword [0x4b4888]
test eax, eax
je 0x408230
push 0x5c
push eax
call fcn.0046f78f
add esp, 8
test eax, eax
je 0x408230
mov edx, dword [0x4b4888]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x408224
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x408229
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4b4880]
test edi, edi
je 0x40831d
cmp word [edi], 0
je 0x408314
xor esi, esi
push edi
call fcn.0046f1b3
add esp, 4
test eax, eax
je 0x408279
call fcn.0046fc14
cmp dword [eax], 2
je 0x408279
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x408253
jmp 0x4082e5
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408280
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
je 0x4082e5
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4082b0
push 0x5c
push esi
call fcn.0046f78f
add esp, 8
test eax, eax
je 0x4082dc
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0046fc68
add esp, 4
push esi
call fcn.0046d737
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082f0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x408251
mov edi, dword [0x4b4880]
push edi
call fcn.0046d737
add esp, 4
mov edx, dword [0x4b487c]
test edx, edx
je 0x40838a
xor esi, esi
lea esp, [esp]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408335
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x408358
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x408358
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.0046fc68
add esp, 4
test eax, eax
je 0x408384
call fcn.0046fc14
cmp dword [eax], 2
je 0x408384
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x408384
mov edx, dword [0x4b487c]
jmp 0x408330
mov edx, dword [0x4b487c]
push edx
call fcn.0046d737
push dword [0x4b4888]
mov dword [0x4b487c], 0
call fcn.0046d737
add esp, 8
mov dword [0x4b4888], 0
pop edi
pop esi
pop ebx
ret
Function at 0x408500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x4085c2
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x40854a
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.0046f1e1
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x204]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x220]
inc dword [edi + 0x20c]
test eax, eax
je 0x4085c2
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4085c1
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [edi + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [edi + 0x220]
test eax, eax
je 0x4085d5
push eax
call fcn.0046d737
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x4085e9
push eax
call fcn.0046d737
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x408670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408774
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x40876d
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push 2
add eax, 0x18c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
call fcn.0046d6a5
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x40876d
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408755
mov dword [esi + 0x208], edi
xor eax, eax
mov dword [esi + 0x20c], 0
lea edi, [esi + 4]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esi + 0x210], eax
push ebx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x224], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x204]
call fcn.0046d737
add esp, 4
mov dword [esi + 0x204], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret