joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44aa6c]
movzx ecx, word [0x45a2c4]
imul eax, eax, 0x4005cf96
push esi
push edi
mov edi, dword [ebp + 8]
add ecx, eax
mov word [0x45a2c4], cx
dec dword [0x44a2cc]
mov eax, dword [0x44a2cc]
and eax, 0x6f184744
xor eax, dword [0x437f10]
mov dword [0x437f10], eax
mov edx, dword [edi + 4]
dec edx
js 0x40cc9b
mov eax, dword [edi + 8]
lea eax, [eax + edx*4]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x40cc9b
sub eax, 4
dec edx
jns 0x40cc90
mov esi, dword [ebp + 0xc]
mov dword [0x43d6c0], 0x33449230
mov ecx, dword [esi + 4]
dec ecx
js 0x40ccbf
mov eax, dword [esi + 8]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x40ccbf
sub eax, 4
dec ecx
jns 0x40ccb4
and dword [0x448170], 0xe9dd592
test edx, edx
jns 0x40ccd5
test ecx, ecx
js 0x40cdaa
or dword [0x43b48c], 0xa3365a39
cmp edx, ecx
jle 0x40ccec
pop edi
mov eax, 1
pop esi
pop ebp
ret
add dword [0x444d50], 0xb1364886
cmp ecx, edx
jle 0x40cd01
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
movzx eax, word [0x45507a]
xor eax, 0xf77defbb
mov word [0x45507a], ax
test edx, edx
js 0x40cd98
jmp 0x40cd20
or dword [0x43e8a8], 0xa6ff9bfd
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [eax + edx*4]
cmp eax, dword [ecx + edx*4]
ja 0x40cce3
mov eax, dword [0x439cf8]
inc dword [0x439cf8]
and eax, 0x3dc0df84
cmp eax, 0x1dc82d34
jl 0x40cd64
movzx eax, word [0x453ae4]
imul eax, eax, 0xb827eed9
mov word [0x453ae4], ax
jmp 0x40cd74
dec dword [0x437ea4]
mov eax, dword [0x437ea4]
mov dword [0x443ad8], eax
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [eax + edx*4]
cmp eax, dword [ecx + edx*4]
jb 0x40ccfa
imul eax, dword [0x43c2f8], 0x54ea62f7
dec edx
mov dword [0x43c2f8], eax
jns 0x40cd20
movzx eax, word [0x453576]
add eax, 0x4408840
mov word [0x453576], ax
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40e7e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and dword [0x435614], 0xcf13f927
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x40e81a
mov eax, dword [0x44cd14]
movsx ecx, word [0x45305e]
add eax, 0xd0263fe
xor ecx, eax
mov dword [0x443e74], ecx
inc word [0x45305e]
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [0x4550b2]
mov ecx, dword [ebp + 0xc]
sub eax, 0x23dd9d88
mov edx, dword [ebp + 8]
mov word [0x4550b2], ax
dec esi
je 0x40e840
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40e840
inc edx
inc ecx
dec esi
jne 0x40e835
movzx eax, byte [edx]
mov dword [0x443f44], 0xf0ea1012
movzx ecx, byte [ecx]
sub eax, ecx
movzx ecx, word [0x44fe68]
and ecx, 0x9db09a8b
mov word [0x44fe68], cx
pop esi
pop ebp
ret
Function at 0x427d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
dec dword [0x43d000]
sub esp, 0x14
mov edx, dword [0x43d000]
mov eax, dword [0x43e8ec]
push esi
push edi
mov edi, ecx
mov esi, 0xb1cf4e66
sub esi, eax
mov ecx, 0x3dac5279
mov eax, dword [0x43983c]
or esi, edx
inc dword [0x43983c]
sub ecx, eax
and ecx, 0x8d86384b
cmp esi, ecx
jl 0x427daf
movsx ecx, word [0x45484e]
movzx eax, word [0x459aa2]
sar ecx, 8
and ecx, 0x5031ab3d
sub eax, ecx
mov word [0x459aa2], ax
mov ecx, edi
call fcn.004100a0
test al, al
jne 0x427f6d
mov eax, dword [0x43572c]
lea ecx, [ebp - 0x14]
sub eax, 0x2a418fd8
mov word [0x454638], ax
inc dword [0x43572c]
or dword [0x440988], 0x32c3b924
call fcn.00426850
dec dword [0x4460b0]
mov edx, dword [0x4460b0]
mov ecx, dword [0x4397f8]
mov eax, dword [0x44a428]
not ecx
sub ecx, eax
mov eax, dword [0x43fce4]
dec dword [0x44a428]
and eax, ecx
cmp eax, edx
jle 0x427e1e
add dword [0x436f74], 0x4dc7ef4b
jmp 0x427e3b
mov ax, word [0x458f2c]
movsx ecx, word [0x458152]
cwde
sub ecx, eax
cmp ecx, 0xbd624e0d
jl 0x427e3b
mov eax, dword [0x444d3c]
mov ax, word [0x4590fe]
mov ecx, dword [0x445dfc]
cwde
or ecx, eax
mov word [0x4590fe], cx
mov ecx, edi
dec dword [0x445dfc]
call fcn.0041ee70
mov ecx, edi
mov esi, eax
call fcn.00427790
cmp esi, eax
je 0x427ee0
jmp 0x427e70
movzx ecx, word [0x4545f0]
xor ecx, 0xfff7ffff
mov word [0x4545f0], cx
mov ecx, esi
call fcn.004013e0
push eax
call dword [0x45cc04]
test eax, eax
je 0x427eb3
add dword [0x4415dc], 0xd7f853d8
lea ecx, [ebp - 0x14]
push esi
call fcn.0042c4d0
add dword [0x442548], 0xc726c84d
mov eax, dword [0x44b004]
add esi, 0x14
mov ecx, dword [0x43923c]
imul eax, eax, 0x11861b2b
xor ecx, eax
xor ecx, 0xa085b3a7
mov dword [0x43923c], ecx
mov ecx, edi
call fcn.00427790
cmp esi, eax
jne 0x427e70
cmp dword [0x441ce0], 0x6fefbebf
jge 0x427f03
movsx ecx, word [0x459ec4]
mov eax, 0xb62a5374
sar ecx, 7
sub eax, ecx
add dword [0x44e23c], eax
lea ecx, [ebp - 0x14]
call fcn.004100b0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00428190
cmp esi, eax
je 0x427f54
lea esp, [esp]
movsx ecx, word [0x452638]
add ecx, 0x9255fa4a
or dword [0x443d44], ecx
mov ecx, edi
push esi
call fcn.0041edc0
xor dword [0x4490cc], 0xd93e4e74
lea ecx, [ebp - 0x14]
add esi, 0x14
call fcn.00428190
cmp esi, eax
jne 0x427f20
mov eax, dword [0x449880]
lea ecx, [ebp - 0x14]
not eax
xor eax, 0x1c752f80
mov dword [0x43f52c], eax
call fcn.004088a0
pop edi
mov dword [0x447a54], 0x97daf69d
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xbb737b6
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x55901406
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40188b
Capabilities:
Get geographical location

Disassembly:
lea eax, [esi + 4]
push 0x416494
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [esp + 0xc]
pop ecx
pop ecx
mov dword [esi + 0x204], eax
ret 4

Function at 0x402ced
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x41e430]
sub esp, 0x104
push ebx
push esi
mov esi, eax
push edi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 0x3a0], ebx
lea edi, [esi + 0x350]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 0x884]
cmp eax, 6
je 0x402d27
cmp eax, ebx
jne 0x402d4e
push esi
call fcn.00402bc6
mov ecx, dword [0x41e430]
cmp dword [ecx + 0x884], 6
je 0x402e0b
cmp eax, ebx
jne 0x402e0b
mov dword [esi + 0x3a0], ebx
push ebx
lea eax, [esp + 0x10]
push eax
add ecx, 0x78
push ecx
mov dword [esp + 0x18], ebx
call fcn.00405c87
add esp, 0xc
test eax, eax
jne 0x402dc4
mov edi, 0xff
push edi
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41e430]
add eax, 0x78
push eax
call fcn.00405c2f
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x402dba
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x402db2
mov eax, dword [eax]
jmp 0x402db4
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x402dc4
mov dword [esi + 0x3a0], 1
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x402e0b
mov eax, dword [0x41e430]
mov dword [esi + 0x39c], ebx
mov dword [esi + 0x360], edi
mov dword [esi + 0x35c], 1
mov ecx, dword [eax + 0x880]
mov edx, 0x80
cmp ecx, edx
jbe 0x402df8
mov ecx, edx
push dword [eax + 0x87c]
add esi, 0x2fc
push ecx
push edi
call fcn.004068bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40311e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x41ee8c]
test eax, eax
jne 0x403156
push 0x4166b8
push 0x78
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40314f
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40314f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x403151
xor eax, eax
mov dword [0x41ee8c], eax
test eax, eax
push esi
mov esi, eax
je 0x40319e
push ebx
mov bl, byte [eax]
jmp 0x403181
push 2
lea eax, [esi + 1]
push eax
push dword [esp + 0x14]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x403188
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x403162
jmp 0x40319d
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
pop ebx
cmp byte [edi], 0
pop esi
jne 0x4031b0
push dword [esp + 4]
push edi
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
ret 4
Function at 0x4031b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41ee90]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 4], ebx
jne 0x4031f8
push 0x4166b8
push 0x70
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
cmp eax, ebx
je 0x4031f1
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x4031f1
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x4031f3
xor eax, eax
mov dword [0x41ee90], eax
cmp eax, ebx
mov esi, eax
je 0x403243
mov bl, byte [eax]
jmp 0x403220
push 2
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x403227
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x403202
jmp 0x403243
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x4033f5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00404f59
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x403460
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edi, [ebx + 0xa]
mov eax, esi
call fcn.004064b3
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.00405951
mov eax, dword [esi]
mov byte [ebx + eax], 0
mov eax, dword [esi]
add esp, 0xc
push dword [ebp + 8]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi]
mov byte [eax + ebx + 2], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 0xc], 0
lea ecx, [esi + 0x10]
mov eax, esi
call fcn.004034ae
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x403462
xor eax, eax
pop ebp
ret 4
Function at 0x4035b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
push esi
mov ecx, 0x1000
mov eax, 0x8000
push edi
lea edx, [esp + 0x38]
mov dword [ebx + 0x88], 0x1388
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x74], eax
call fcn.004033b6
push dword [ebp + 8]
mov esi, edx
call fcn.004033f5
test eax, eax
je 0x403774
push 0x4166c4
mov eax, esi
call fcn.00403522
mov dword [esp + 0xc], eax
push str.country_name
mov eax, esi
call fcn.00403522
mov dword [esp + 0x10], eax
push str.city_name
mov eax, esi
call fcn.00403522
mov dword [esp + 0x14], eax
push str.country_iso_code
mov eax, esi
call fcn.00403522
mov dword [esp + 0x1c], eax
push str.subdivision_1_name
mov eax, esi
call fcn.00403522
mov dword [esp + 0x18], eax
jmp 0x403761
mov ecx, dword [esp + 0xc]
or dword [esp + 0x28], 0xffffffff
or dword [esp + 0x2c], 0xffffffff
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x68]
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
call fcn.00405fe0
push eax
call sub.msvcrt.dll__wtoi
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
call fcn.00405fe0
mov esi, eax
cmp word [esi], 0
je 0x4036b1
push 0
push esi
mov edi, ebx
call fcn.00405f8c
cmp eax, 0xffffffff
jne 0x4036ad
push esi
mov eax, ebx
call fcn.00405eb8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
call fcn.00405fe0
cmp word [eax], 0
je 0x4036d1
push eax
lea edi, [ebx + 0x20]
call fcn.00405f5a
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x68]
call fcn.00405fe0
cmp word [eax], 0
je 0x4036f1
push eax
lea edi, [ebx + 0x60]
call fcn.00405f5a
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x68]
call fcn.00405fe0
cmp word [eax], 0
je 0x403711
mov cl, byte [eax]
mov al, byte [eax + 2]
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
lea esi, [ebx + 0x80]
mov edi, dword [esi + 0xc]
test edi, edi
mov dword [esp + 0x20], edi
jl 0x403761
cmp edi, 0xffffffff
mov eax, dword [esi + 8]
jne 0x403733
push dword [esi]
call sub.msvcrt.dll_free
jmp 0x403747
push eax
mov edx, edi
push 0x14
lea eax, [esi + 4]
mov edi, esi
call fcn.0040524e
mov edi, dword [esp + 0x28]
pop ecx
lea eax, [edi + 1]
cmp dword [esi + 0xc], eax
pop ecx
jge 0x403753
mov dword [esi + 0xc], eax
imul edi, edi, 0x14
add edi, dword [esi]
push 5
pop ecx
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea eax, [esp + 0x38]
call fcn.004034ae
test eax, eax
jne 0x403650
lea edi, [esp + 0x38]
call fcn.004033db
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x404f8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret
Function at 0x405112
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x40516f
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40516d
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40517a
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00404f59
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x40520c
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4051f5
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4051f5
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4051fe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x405215
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40539c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405529
Capabilities:
Get common file path

Disassembly:
cmp word [0x41ee98], 0
push esi
mov esi, 0x41ee98
jne 0x40554a
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x41f0a4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x41f0a4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4057df
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4164c8
push eax
push eax
push dword [esp + 0x14]
push 0x416ad4
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x405970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x417330
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret
Function at 0x405d64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [0x41f0a8], 0
mov esi, 0x41f0a8
jne 0x405dac
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x41f2b4], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.00404faf
push dword [ebp + 8]
mov eax, esi
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x405de6
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x406309
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x406335
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x406350
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x406357
call fcn.004063a2
cmp dword [esp + 4], 0
je 0x40639b
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x406394
push ebx
push esi
mov eax, edi
call fcn.00405505
pop ecx
pop ecx
jmp 0x406398
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x4065ac
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x406614
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.IcmpCreateFile
push eax
call edi
push str.IcmpCloseHandle
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.IcmpSendEcho
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.IcmpSendEcho2
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.IcmpParseReplies
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.Icmp6SendEcho2
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
push str.Icmp6CreateFile
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
pop edi
ret
Function at 0x406d52
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00404f59
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x406db3
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edi, [ebx + 0xa]
mov eax, esi
call fcn.004064b3
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.00405951
mov eax, dword [esi]
mov byte [ebx + eax], 0
mov eax, dword [esi]
add esp, 0xc
push dword [ebp + 8]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi]
mov byte [eax + ebx + 2], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 0xc], 0
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x406db5
xor eax, eax
pop ebp
ret 4

Function at 0x408437
Capabilities:
Get file size

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
xor ebx, ebx
call fcn.00404f59
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40849a
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x408492
call fcn.0040802a
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push esi
push eax
push edi
mov dword [0x41ee0c], eax
call fcn.00405951
mov eax, dword [0x41ee0c]
mov byte [eax + esi], bl
add esp, 0x10
mov dword [0x41ee18], ebx
call fcn.00408050
call fcn.00408012
inc ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x408c4d
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x41e558
push dword [esp + 0xc]
push esi
push 0x4164c8
push dword [esp + 0x14]
push 0x41e768
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x408c72
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415020
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41e558
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4164c8
push dword [ebp + 8]
push 0x41e768
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408ce1
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x408ce5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415020
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x41e558
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4164c8
push dword [ebp + 8]
mov esi, 0x41e768
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408d4c
cmp dword [ebp + 0x10], 0
jne 0x408d4c
xor eax, eax
jmp 0x408d5a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret
Function at 0x4090d1
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.0040539c
test eax, eax
pop ecx
je 0x409158
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x41e558
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x41e768
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x416e64
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x41e7f0
mov dword [0x41e7ec], eax
call fcn.00408c4d
push 0x3f
push str.TranslatorName
mov esi, 0x41e870
call fcn.00408c4d
push 0xff
push str.TranslatorURL
mov esi, 0x41e8f0
call fcn.00408c4d
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40a370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415020
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret