joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9c0
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1508
call fcn.00427c90
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1504], eax
mov ecx, dword [eax + 8]
push dword [eax + 4]
mov dword [ebp - 0x14fc], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x1500], edi
test edi, edi
je 0x41ebb2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartSession
push edi
call esi
push str.OpenEngine
push edi
mov ebx, eax
call esi
push str.SimpleTransSentM
push dword [ebp - 0x1500]
mov edi, eax
call esi
push str.SetBasicDictPathW
push dword [ebp - 0x1500]
mov dword [ebp - 0x1508], eax
call esi
mov esi, eax
lea eax, [ebp - 0x804]
push 0x437b98
push eax
lea eax, [ebp - 0xcf8]
push eax
push dword [ebp - 0x14fc]
call ebx
push 0x4f4
call edi
push dword [ebp - 0x14fc]
push 0x4f4
call esi
mov edi, dword [ebp - 0x1504]
push 0
push 0xffffffffffffffff
push 0xffff
push 0xffff
push 0xff
push 6
push 3
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [edi + 0x10]
mov esi, eax
push 0
push 0
push 0x440ad4
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14fc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eb9f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x1508]
push 0x800
lea eax, [ebp - 0x14f8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14f8]
push 4
push 0x28
push eax
lea eax, [ebp - 0x804]
push eax
push 0x4f4
call ebx
lea eax, [ebp - 0x14f8]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eb40
sub eax, edx
lea ecx, [ebp - 0x14fc]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x14f8]
push eax
push esi
call edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14fc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41eb00
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427518
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00427518
mov esp, ebp
pop ebp
ret
Function at 0x424530
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x34], 0
jne 0x424544
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x424560
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x2c], ecx
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 4
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x34]
test eax, eax
jne 0x424599
xor eax, eax
jmp 0x424632
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 4], ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.004248d0
test eax, eax
jne 0x4245f7
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.004248b0
test eax, eax
jne 0x4245f7
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x424632
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x42460c
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x2c], eax
jne 0x42462d
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x424640
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp + 0xc], 1
jb 0x424676
cmp dword [ebp + 0xc], 0x1000
jbe 0x424688
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42488b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00422d20
test eax, eax
jne 0x4246ae
jmp 0x42488b
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x4246e0
cmp dword [ebp - 0x420], 0x104
jb 0x4246ea
jmp 0x42488b
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00423550
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x424719
jmp 0x42488b
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x418]
lea eax, [edx + ecx + 0xc]
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.00423660
add esp, 0x10
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x42475e
jmp 0x42488b
push 0x10
push 0
lea edx, [ebp - 0x438]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x47c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x47c], 0x44
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x42488b
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
push 0x438414
mov edx, dword [ebp - 0x438]
push edx
call fcn.004241f0
test eax, eax
jne 0x424813
push 0xffffffffffffffff
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42488b
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x424], 0x1f4
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x424], 0
je 0x424881
jmp 0x42488b
mov dword [ebp - 0x428], 1
lea ecx, [ebp - 0x418]
push ecx
call fcn.00423130
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427518
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42647e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4264a5
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4264a8
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042645a
pop esi
leave
ret 8

Function at 0x4280a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4280e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4280e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4280e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4280e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4280e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x428667
mov ecx, 5
int 0x29
push 2
call fcn.00428146
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x428772
test esi, esi
jne 0x428772
push 2
call fcn.00428146
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00427518
mov esp, ebp
pop ebp
ret
Function at 0x42d300
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x42d32a
mov eax, 2
pop ebp
ret
push esi
call fcn.00428490
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x42d34a
jmp dword [eax*4 + 0x42d380]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004285d0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x42d390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x440100]
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 0x42d48b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x42d48b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x42d3ea
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x42d3c8
jmp 0x42d48b
cmp edx, 0x200
jae 0x42d4f1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x42d48b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x42d48a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x42d48a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x42d4d3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x42d470
pop edi
mov eax, dword [0x441158]
test eax, eax
jne 0x42d4b1
push str.setlocale
call fcn.0042e1f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42d4ac
or eax, 0xffffffff
mov dword [0x441158], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x42d4df
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427518
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x42d48a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00427518
mov esp, ebp
pop ebp
ret
call fcn.00427699
int3

Function at 0x42d7e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042d810
mov esi, dword [ebp + 8]
test al, al
je 0x42d7fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042d820
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42d950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42d9ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d9ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d9ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42d9ac
cmp dword [ecx + 0x74], 0xe
jbe 0x42d9ac
cmp dword [ecx + 0xe8], 0
je 0x42d9ac
push dword [ebp + 8]
call fcn.0042d820
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x441164
call fcn.0042d5f0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42d9e1
push dword [ebp + 8]
call fcn.0042d7e0
mov esp, ebp
pop ebp
ret

Function at 0x42da20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42da7c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42da7c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42da7c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42da7c
cmp dword [ecx + 0x74], 0xe
jbe 0x42da7c
cmp dword [ecx + 0xe8], 0
je 0x42da7c
push dword [ebp + 8]
call fcn.0042d820
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x441164
call fcn.0042d5f0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42dab1
push dword [ebp + 8]
call fcn.0042d7e0
mov esp, ebp
pop ebp
ret
Function at 0x4055ec
Capabilities:
Encode data using xor

Disassembly:
push eax
mov ebx, edi
sub ebx, 0x401785
mov ah, bl
and ebx, 7
add ebx, 0x401779
add ah, byte [ebx]
xor byte [edi], ah
inc edi
dec cl
jne 0x4055ed
pop eax
ret

Function at 0x406fc2
Capabilities:
Identify system language via api

Disassembly:
push eax
cmp eax, 0
je 0x4070c0
call sub.KERNEL32.dll_GetUserDefaultLangID
and ax, 0xff
cmp ax, 7
jne 0x406fe9
nop
nop
nop
nop
mov esi, str.Dinkey_Dongle_Fehler__d_r_n
jmp 0x407052
cmp ax, 0xc
jne 0x406ffd
nop
nop
nop
nop
mov esi, str.Erreur_Dinkey_Dongle_numero__d_r_n
jmp 0x407052
cmp ax, 0x15
jne 0x407011
nop
nop
nop
nop
mov esi, 0x40da5d
jmp 0x407052
cmp ax, 0x16
jne 0x407025
nop
nop
nop
nop
mov esi, str.Erro_de_protec
jmp 0x407052
cmp ax, 0x14
jne 0x407039
nop
nop
nop
nop
mov esi, str.Kopi_beskyttelse_feil_nr.__d_r_n
jmp 0x407052
cmp ax, 0xa
jne 0x40704d
nop
nop
nop
nop
mov esi, 0x40da9d
jmp 0x407052
mov esi, str.Protection_Dongle_error_number__d_r_n
pop eax
push eax
push eax
push esi
push 0x40b156
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x40d2b6], 0
jne 0x40707e
nop
nop
nop
nop
cmp word [0x40d2ba], 0
je 0x4070c0
nop
nop
nop
nop
mov esi, 0x40b156
inc esi
cmp byte [esi], 0xd
jne 0x407083
mov eax, 0
mov al, byte [0x40d2bb]
push eax
mov al, byte [0x40d2ba]
push eax
mov al, byte [0x40d2b9]
push eax
mov al, byte [0x40d2b8]
push eax
mov al, byte [0x40d2b7]
push eax
mov al, byte [0x40d2b6]
push eax
push str.__.2x__.2x__.2x__.2x__.2x__.2x_r_n
push esi
call sub.USER32.dll_wsprintfA
add esp, 0x20
pop eax
ret

Function at 0x4076a3
Capabilities:
Read .ini file

Disassembly:
push eax
push esi
mov eax, 0x101
push eax
push 0x40b7f1
push 0x40db24
push edi
push ebx
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40b7f1
cmp word [edi], 0x6968
pop ecx
jne 0x407746
nop
nop
nop
nop
cmp ecx, 0
je 0x407743
nop
nop
nop
nop
push esi
mov esi, 0x410920
mov edi, 0x40b9e5
mov ebx, 0
mov ecx, 0x101
lodsb al, byte [esi]
stosb byte es:[edi], al
inc ebx
cmp al, 0
je 0x4076f8
nop
nop
nop
nop
loop 0x4076eb
mov eax, ebx
pop esi
mov edi, 0x40b9e5
add edi, eax
dec edi
cmp byte [edi], 0x5c
jne 0x407702
inc edi
movsb byte es:[edi], byte [esi]
cmp byte [esi - 1], 0
jne 0x407709
push 0x40b9e5
push 0x101
push 0x40b7f1
push 0x40db24
push str.DinkeyNetPath
push str.dinkey
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40b7f1
cmp word [edi], 0x6968
jne 0x407746
nop
nop
nop
nop
mov al, 0x21
ret
add edi, eax
mov al, 0
ret
Function at 0x407e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x408e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x410254], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x410250], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41024c], ecx
shr eax, 0x10
mov dword [0x410248], eax
call fcn.00408d00
test eax, eax
jne 0x407e8a
push 0x1c
call fcn.00407fc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00408b00
call fcn.00408af0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410b50], eax
call fcn.004086c0
mov dword [0x410230], eax
test eax, eax
je 0x407ebd
mov eax, dword [0x410b50]
test eax, eax
jne 0x407ec7
push 0xffffffffffffffff
call fcn.00408020
add esp, 4
call fcn.00408410
call fcn.00408320
call fcn.00407ff0
mov esi, dword [0x410b50]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x407fa6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x407f0e
test al, al
je 0x407f0e
and eax, 0xff
push eax
call fcn.004082c0
add esp, 4
test eax, eax
je 0x407ee8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407ee8
cmp byte [esi], 0x22
jne 0x407f17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x407f27
cmp al, 0x20
ja 0x407f27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407f17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x407f48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x407f4d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00408020
jmp 0x407f8b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x407f17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407fa6

Function at 0x408060
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x410284]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40807f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x410280], 1
mov byte [0x41027c], bl
jne 0x4080d9
mov ecx, dword [0x410b48]
test ecx, ecx
je 0x4080c7
mov esi, dword [0x410b44]
sub esi, 4
cmp esi, ecx
jb 0x4080c7
mov eax, dword [esi]
test eax, eax
je 0x4080c0
call eax
mov ecx, dword [0x410b48]
sub esi, 4
cmp esi, ecx
jae 0x4080b2
push 0x40b014
push 0x40b010
call fcn.00408110
add esp, 8
push 0x40b01c
push 0x40b018
call fcn.00408110
add esp, 8
test ebx, ebx
jne 0x408100
push ebp
mov dword [0x410284], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4086c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x410398]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x408702
call edi
mov esi, eax
test esi, esi
je 0x4086ec
mov eax, 1
jmp 0x4086fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40880f
mov eax, 2
mov dword [0x410398], eax
cmp eax, 1
jne 0x4087a2
test esi, esi
jne 0x40871b
call edi
mov esi, eax
test esi, esi
je 0x40880f
cmp word [esi], 0
mov eax, esi
je 0x408735
add eax, 2
cmp word [eax], 0
jne 0x408723
add eax, 2
cmp word [eax], 0
jne 0x408723
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x408794
push edi
call fcn.00409180
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408794
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x408786
push ebx
call fcn.00409130
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40880f
test ebx, ebx
jne 0x4087b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40880f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4087cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4087bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4087bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00409180
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4087ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret