joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410230
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov ebx, ecx
mov esi, edx
mov byte [esp + 0x18], 0
call fcn.00417ce0
push 0x42e2e8
push esi
call fcn.004166f0
add esp, 0x14
test eax, eax
jne 0x4102a7
cmp byte [ebx + 0x61c], al
lea edi, [ebx + 0x61c]
jne 0x410287
push ebx
call fcn.00410150
push esi
push edi
push 0x42e20c
push 0x104
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0041640e
add esp, 0x18
jmp 0x4102bf
push 0x104
push esi
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.004170dd
add esp, 0x10
push 0x104
lea eax, [esp + 0x10]
push eax
lea esi, [ebx + 4]
push 0x104
push esi
call fcn.004170dd
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4102fd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00415dd3
add esp, 0x20c
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edi, eax
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410311
sub eax, edx
push ebp
sub eax, edi
lea esi, [esp + eax + 0x10]
push esi
push edi
lea edx, [ebx + 0x108]
push 0x104
push edx
call fcn.004170dd
push esi
push edi
lea ebp, [ebx + 0x20c]
push 0x104
push ebp
call fcn.004170dd
push 0x2e
push ebp
call fcn.00416870
add esp, 0x28
test eax, eax
je 0x410359
mov byte [eax], 0
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call fcn.00417ce0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410395
sub eax, edx
cmp byte [esp + eax + 0x113], 0x5c
lea eax, [esp + eax + 0x113]
jne 0x4103b1
mov byte [eax], cl
push 0x104
lea edx, [esp + 0x118]
push edx
lea eax, [ebx + 0x720]
push 0x104
push eax
call fcn.004170dd
push ebp
lea ecx, [esp + 0x128]
push ecx
push str._s_s.ime
push 0x104
push 0x104
add ebx, 0x518
push ebx
call fcn.0041640e
mov ecx, dword [esp + 0x240]
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00415dd3
add esp, 0x20c
ret

Function at 0x410420
Capabilities:
Check if file exists

Disassembly:
push esi
push 0x42e2e8
push edi
mov esi, eax
call fcn.004166f0
add esp, 8
test eax, eax
jne 0x41047a
cmp byte [esi + 0x61c], al
push ebx
lea ebx, [esi + 0x61c]
jne 0x41044a
push esi
call fcn.00410150
push edi
push ebx
push 0x42e20c
push 0x104
add esi, 0x414
push 0x104
push esi
call fcn.0041640e
add esp, 0x18
pop ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
pop esi
ret
push 0x104
push edi
add esi, 0x414
push 0x104
push esi
call fcn.004170dd
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x410640
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
lea eax, [esi + 0x518]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410664
mov eax, dword [0x432fcc]
test eax, eax
je 0x410664
call eax
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [esi + 0x928]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x59
mov dword [esp + 0x20], 0
call ebx
cmp dword [esp + 0x10], edi
je 0x410694
push 2
push edi
push 0
push 0x5a
call ebx
lea eax, [esi + 0x310]
call fcn.0040fab0
test eax, eax
je 0x4106b9
mov ecx, dword [esi + 0x928]
test ecx, ecx
je 0x4106b9
push ecx
push 1
push 0x50
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x92c]
test eax, eax
je 0x4106df
push eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
jne 0x41070b
call fcn.00410be0
mov eax, 0x1fe
pop edi
pop esi
pop ebx
add esp, 8
ret
add esi, 0x20c
push esi
call fcn.004107e0
test eax, eax
je 0x4106fa
push eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
jne 0x41070b
call fcn.00410be0
mov eax, 0x1ff
pop edi
pop esi
pop ebx
add esp, 8
ret
call fcn.00410be0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x410720
Capabilities:
Copy file
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push edi
mov edi, ecx
test eax, eax
jne 0x41075a
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00415dd3
add esp, 0x108
ret 4
push esi
push 0
lea esi, [edi + 0x518]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add edi, 0x720
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
push str.Windows
push esi
call sub.IMM32.dll_ImmInstallIMEA
lea edx, [esp + 8]
push edx
mov esi, eax
call edi
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.00415dd3
add esp, 0x108
ret 4
Function at 0x4107e0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x1c], eax
call edi
mov esi, eax
cmp esi, 1
jge 0x41081c
xor eax, eax
jmp 0x410923
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebp
mov dword [esp + 0x10], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00415dc8
add esp, 4
mov ebp, eax
push ebp
push esi
call edi
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x410915
mov edi, edi
mov esi, dword [ebp + edi*4]
push esi
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x410904
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov byte [esp + 0x28], bl
call fcn.00417ce0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.IMM32.dll_ImmGetDescriptionA
lea ecx, [esp + 0x1c]
mov eax, 0x42e328
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4108b2
cmp dl, bl
je 0x4108ae
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4108b2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x410892
xor eax, eax
jmp 0x4108b7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x410904
push 0x103
lea edx, [esp + 0x125]
push ebx
push edx
mov byte [esp + 0x12c], bl
call fcn.00417ce0
add esp, 0xc
push 0x104
lea eax, [esp + 0x124]
push eax
push esi
call sub.IMM32.dll_ImmGetIMEFileNameA
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push edx
call fcn.004163bc
add esp, 8
test eax, eax
je 0x410911
inc edi
cmp edi, dword [esp + 0x14]
jl 0x410850
jmp 0x410915
mov dword [esp + 0x10], esi
push ebp
call fcn.0041682d
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x218
ret 4
Function at 0x410cc0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0x124
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00417ce0
add esp, 0xc
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x410d37
lea esp, [esp]
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004163bc
add esp, 8
test eax, eax
je 0x410d33
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x410d10
jmp 0x410d37
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00415dd3
add esp, 0x134
ret
Function at 0x411680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4287f6
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CPEMerge.0
call fcn.00401ce0
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov byte [esp + 0x14], 1
call fcn.00411ce0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x411820
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x12c
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add ecx, eax
movzx eax, word [ecx + 6]
lea ecx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
jle 0x411873
add ecx, 0x10
mov edi, eax
nop
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, edx
jbe 0x41186b
mov edx, eax
add ecx, 0x28
sub edi, 1
jne 0x411860
push esi
mov dword [esi + 0x44], edx
call fcn.004123d0
test eax, eax
je 0x411a03
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x44]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x38]
mov dword [ecx + edx], eax
add dword [esi + 0x44], 4
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x14]
jbe 0x4118b7
call fcn.004160be
mov ebp, dword [esi + 4]
mov ebx, edi
mov dword [esp + 0x18], ebx
mov edi, dword [esi + 0x14]
cmp dword [esi + 0x10], edi
jbe 0x4118cd
call fcn.004160be
mov eax, dword [esi + 4]
test ebp, ebp
je 0x4118d8
cmp ebp, eax
je 0x4118dd
call fcn.004160be
cmp ebx, edi
je 0x411a07
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00417ce0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
test ebp, ebp
jne 0x4119bb
call fcn.004160be
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x41192e
call fcn.004160be
mov ecx, dword [ebx + 0x14]
lea edi, [ebx + 4]
mov dword [esp + 0x1c], ecx
test ebp, ebp
jne 0x4119c3
call fcn.004160be
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x411951
call fcn.004160be
cmp dword [edi + 0x14], 0x10
jb 0x411959
mov edi, dword [edi]
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00418300
add esp, 0xc
push esi
lea ebx, [esp + 0x24]
call fcn.00411d70
test eax, eax
je 0x4119d0
push esi
call fcn.00411fc0
test eax, eax
je 0x4119e0
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.0041682d
add esp, 4
test ebp, ebp
jne 0x4119cb
call fcn.004160be
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x4119ad
call fcn.004160be
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x18]
jmp 0x4118c0
mov eax, dword [ebp]
jmp 0x411924
mov eax, dword [ebp]
jmp 0x411947
mov eax, dword [ebp]
jmp 0x41199f
mov eax, dword [esi + 0x38]
push eax
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x411a3b
mov ecx, dword [esi + 0x38]
push ecx
call fcn.0041682d
mov edx, dword [esp + 0x130]
add esp, 4
push edx
mov dword [esi + 0x38], 0
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x411a42
push esi
call fcn.00411c20
test eax, eax
je 0x4119d0
call fcn.004124c0
test eax, eax
jne 0x411a2a
mov ecx, dword [esi + 0x38]
push ecx
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x411a3b
mov edx, dword [esi + 0x38]
push edx
call fcn.0041682d
add esp, 4
mov eax, 1
mov dword [esi + 0x38], 0
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x12c
ret
Function at 0x411a60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x124
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
push edi
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add ecx, eax
movzx eax, word [ecx + 6]
lea ecx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
jle 0x411ac3
add ecx, 0x10
mov esi, eax
nop
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, edx
jbe 0x411abb
mov edx, eax
add ecx, 0x28
sub esi, 1
jne 0x411ab0
push ebp
mov dword [ebp + 0x40], edx
call fcn.004123d0
test eax, eax
je 0x411bcc
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x38]
mov ecx, dword [eax + ecx]
add eax, 4
mov dword [esp + 0x10], ecx
mov dword [ebp + 0x40], eax
test ecx, ecx
jbe 0x411be0
xor ebx, ebx
test ecx, ecx
jle 0x411be0
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.00417ce0
mov esi, dword [ebp + 0x40]
add esi, dword [ebp + 0x38]
xor eax, eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x44
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004163bc
add esp, 8
test eax, eax
je 0x411b69
mov edx, dword [esp + 0x120]
add edx, 0x110
add dword [ebp + 0x40], edx
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x411af9
jmp 0x411be0
push 0x110
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00417ce0
add esp, 0xc
push ebp
lea ebx, [esp + 0x1c]
call fcn.00411f10
test eax, eax
jne 0x411b9b
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x411bf1
push ebp
lea ecx, [esp + 0x1c]
call fcn.00412040
test eax, eax
jne 0x411bd0
mov edx, dword [ebp + 0x38]
push edx
call fcn.0041682d
mov eax, dword [esp + 0x128]
add esp, 4
push eax
mov dword [ebp + 0x38], 0
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x411bf8
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0041682d
add esp, 4
mov edx, dword [ebp + 0x38]
push edx
call fcn.0041682d
add esp, 4
mov eax, 1
mov dword [ebp + 0x38], 0
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x124
ret 8
Function at 0x411c20
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x38], 0
je 0x411ca0
cmp dword [eax + 0x3c], 0
je 0x411ca0
cmp dword [0x42e388], 0x90909090
je 0x411ca0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x411c4b
mov dword [0x42e388], eax
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx edi, word [ecx + eax + 6]
add ecx, eax
mov edx, 0x42e388
sub edx, eax
movzx eax, word [ecx + 0x14]
lea ebx, [eax + ecx + 0x18]
xor eax, eax
test edi, edi
jle 0x411cb7
lea ecx, [ebx + 0xc]
lea esp, [esp]
mov esi, dword [ecx]
cmp esi, edx
ja 0x411c8f
mov ebp, dword [ecx - 4]
add ebp, esi
cmp ebp, edx
ja 0x411ca5
inc eax
add ecx, 0x28
cmp eax, edi
jl 0x411c80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
xor eax, eax
ret 4
lea ecx, [eax + eax*4]
mov eax, dword [ebx + ecx*8 + 0x14]
sub eax, dword [ebx + ecx*8 + 0xc]
lea ecx, [ebx + ecx*8]
add eax, edx
jne 0x411cc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x38]
pop edi
pop esi
pop ebp
mov dword [eax + ecx], 0x90909090
mov eax, 1
pop ebx
ret 4
Function at 0x411d70
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x428618
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor ebp, ebp
cmp ebx, ebp
je 0x411e29
add eax, 0x1c
push eax
mov edi, ebx
lea esi, [esp + 0x18]
mov dword [ebx + 0x104], ebp
mov dword [ebx + 0x108], ebp
mov dword [ebx + 0x10c], ebp
call fcn.00412de0
add esp, 4
mov dword [esp + 0x3c], ebp
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x411de2
lea eax, [esp + 0x18]
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x411e15
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
jne 0x411e30
cmp dword [esp + 0x2c], 0x10
jb 0x411e29
mov eax, dword [esp + 0x18]
push eax
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x411ee5
push edi
call fcn.00415dc8
mov ebp, 0x10
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x411e4e
lea eax, [esp + 0x18]
push esi
call fcn.004126c0
test eax, eax
jne 0x411e78
push esi
call fcn.0041682d
add esp, 4
cmp dword [esp + 0x2c], ebp
jb 0x411e29
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x411ee5
lea eax, [edi + edi + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.00415dc8
push edi
push esi
lea edx, [esp + 0x1c]
mov ebp, eax
push edx
push ebp
call fcn.004224e0
add esp, 0x14
test eax, eax
je 0x411eb8
push ebp
call fcn.0041682d
push esi
call fcn.0041682d
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004019b0
xor eax, eax
jmp 0x411ee5
push esi
call fcn.0041682d
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [ebx + 0x104], edi
mov dword [ebx + 0x10c], ebp
mov dword [ebx + 0x108], eax
call fcn.004019b0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00415dd3
add esp, 0x30
ret 4
Function at 0x4123d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x110
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00417ce0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412495
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x412495
mov ecx, ebp
call fcn.004120f0
mov esi, eax
test esi, esi
je 0x412495
cmp esi, edi
jae 0x412467
mov esi, edi
push esi
call fcn.00415dc8
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.00417ce0
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
call fcn.004126c0
test eax, eax
jne 0x412499
push ebx
call fcn.0041682d
add esp, 4
xor eax, eax
jmp 0x4124a4
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], esi
mov eax, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x110
ret 4

Function at 0x4125a0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x130
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push 0x103
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.00417ce0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x412629
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
test eax, eax
jne 0x412643
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00415dd3
add esp, 0x130
ret
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x412629
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
test eax, eax
jne 0x41269e
call ebp
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00415dd3
add esp, 0x130
ret
call ebp
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00415dd3
add esp, 0x130
ret
Function at 0x4126c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412720
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412719
cmp dword [esp + 4], edi
jne 0x412719
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x412730
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412790
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412789
cmp dword [esp + 4], edi
jne 0x412789
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x413750
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x40]
push ebx
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x30], eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], 0xbb8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x41379a
cmp dword [esp + 0x3c], 0x10
jb 0x413793
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004160ce
add esp, 4
xor al, al
pop ebx
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [esp + 0x18]
push edx
push 2
push ebx
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 6
push ebx
call esi
push 4
lea ecx, [esp + 0x18]
push ecx
push 5
push ebx
call esi
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x4137d4
lea eax, [esp + 0x2c]
push 0
push closesocket
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4138cf
push ebp
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000013
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 4
call ebp
test eax, eax
je 0x4138c7
cmp dword [esp + 0x1c], 0xc8
jne 0x4138c7
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x20000005
push esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 4
call ebp
mov eax, dword [esp + 0x48]
push eax
xor ebp, ebp
push ebp
push edi
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x3e8
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push esi
call ebp
test eax, eax
je 0x4138b4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4138b4
mov edx, dword [esp + 0x10]
add eax, edx
cmp eax, dword [esp + 0x48]
ja 0x4138b4
lea ecx, [esp + 0x14]
push ecx
push 0x3e8
lea edx, [edi + eax]
push edx
push esi
mov dword [esp + 0x20], eax
call ebp
test eax, eax
jne 0x413887
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4138c2
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov byte [esp + 0xf], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebp
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x40], 0x10
pop esi
jb 0x4138eb
mov edx, dword [esp + 0x28]
push edx
call fcn.004160ce
add esp, 4
mov al, byte [esp + 7]
pop ebx
add esp, 0x1c
ret