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

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x401013
mov edi, dword [esp + 0x120]
mov ebx, dword [esp + 0x11c]
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x13], al
jl 0x40102e
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, esi
sub edi, esi
mov dword [esp + 0x10], 0x100
mov dl, byte [ecx]
xor ebx, ebx
mov bl, byte [edi + ecx]
mov ebp, edx
and ebp, 0xff
add eax, ebx
add eax, ebp
and eax, 0x800000ff
jns 0x401076
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [eax + esi]
mov byte [ecx], bl
mov byte [eax + esi], dl
mov edx, dword [esp + 0x10]
inc ecx
dec edx
mov dword [esp + 0x10], edx
jne 0x401055
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4010a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jle 0x40112c
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x4010cb
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x4010e8
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x401116
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jl 0x4010ba
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x401380
Capabilities:
Check if file exists
Query environment variable

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
mov byte [esp + 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x319]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x115]
push 0x2e00
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401590
mov ebp, eax
mov ecx, 0xb80
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0xb80
mov esi, 0x40302c
mov edi, ebp
push 8
lea eax, [esp + 0x11c]
push 0x403024
rep movsd dword es:[edi], dword [esi]
push eax
call section..text
push 0x2e00
lea ecx, [esp + 0x128]
push ebp
push ecx
call fcn.004010a0
add esp, 0x1c
lea edx, [esp + 0x318]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x114]
push 0x104
push edx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x214]
push 0x104
push eax
push 0x405e74
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea edx, [esp + 0x10]
je 0x4014b8
mov edi, 0x405e70
or ecx, 0xffffffff
xor eax, eax
push 0x405e64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4014df
mov edi, 0x405e60
or ecx, 0xffffffff
xor eax, eax
push 0x405e54
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x318]
lea eax, [esp + 0x10]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push 0x405e50
push ecx
call esi
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.00401130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret
Function at 0x4015a9
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405f24]
test eax, eax
je 0x4015c2
call eax
test eax, eax
jne 0x4015c2
push 0xfffffffffffffffe
jmp 0x4015dc
push 1
push 0x403010
push 0x403008
call fcn.004016ca
add esp, 0xc
test eax, eax
je 0x4015e2
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x403004
push section..data
call fcn.004016ca
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x401608
mov esi, 0x402058
mov cl, 0x20
jmp 0x401611
cmp al, 0x20
ja 0x40161b
inc esi
mov al, byte [esi]
test al, al
jne 0x40160c
cmp al, 0x20
jbe 0x401632
mov al, byte [esi]
cmp al, 0x22
jne 0x401624
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40161d
jmp 0x401632
cmp al, cl
ja 0x401638
inc esi
mov al, byte [esi]
test al, al
jne 0x40162d
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x401661
movzx eax, word [ebp - 0x14]
jmp 0x401664
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401695
pop ecx
pop esi
leave
ret
Function at 0x410a37
Capabilities:
Parse pe header

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

Function at 0x411fe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x411ff7
pop dword [ebp - 0x44]
mov eax, 0xe91c8b01
sub eax, 0xe8db6b0a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xab6993a6
sub dword [ebp - 0x54], 0x5d174e5b
mov dword [ebp - 0x50], 0xb30d40af
sub dword [ebp - 0x50], 0x80d9f46a
mov dword [ebp - 0x4c], 0x5d71a375
sub dword [ebp - 0x4c], 0x11255f47
mov dword [ebp - 0x48], 0xb193031f
sub dword [ebp - 0x48], 0xb193031f
lea eax, [ebp - 0x54]
push eax
mov eax, 0x94f89fa1
add eax, 0x6b48b0df
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x54ce0d26
sub dword [ebp - 0x54], 0xe05ba3d0
mov dword [ebp - 0x50], 0x1399e3fa
sub dword [ebp - 0x50], 0xd22d8285
mov dword [ebp - 0x4c], 0xfc045de4
sub dword [ebp - 0x4c], 0x9894f178
mov dword [ebp - 0x48], 0x9cedac03
add dword [ebp - 0x48], 0x631253fd
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x61e87950
sub eax, 0x61a72904
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x358cd
push 0
call eax
mov ecx, 0x34a4
xor esi, esi
add esi, eax
mov edx, 0x41f400
add edx, dword [ebp - 0x44]
mov edi, 0x28d0a32b
add edi, 0x47e7c4a
mov dword [ebp - 0x34], 0x155eb7fa
mov ebx, dword [edx]
add dword [ebp - 0x2c], edi
xor ebx, edi
add dword [ebp - 0x30], 0xd9c172aa
mov dword [esi], ebx
mov dword [ebp - 0x2c], 0x9c9ead14
add esi, 0xba3435e2
sub esi, 0xba3435de
add edx, 0x74e597fa
add edx, 0x8b1a680a
loop 0x41210f
add eax, 0xf9840e4e
sub eax, 0xf98348eb
xor ebx, ebx
add ebx, eax
add eax, 0xc003587b
sub eax, 0xc0035876
mov ecx, 0x680428de
add ecx, 0x983bd722
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x404511
pop dword [ebp - 0x30]
mov eax, 0x404511
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x374aa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x81630d11
add ecx, 0x7e9d334c
xor edx, edx
add edx, eax
mov ebx, 0x816f1b14
sub ebx, 0x812ddf50
add ebx, dword [ebp - 0x30]
mov edi, 0xb525ae40
xor dword [ebp - 0x2c], 0xc0223d6f
mov esi, dword [ebx]
sub dword [ebp - 0x20], 0xc1c1ee81
xor esi, edi
sub dword [ebp - 0x1c], eax
mov dword [edx], esi
add edx, 4
add ebx, 0x8e52c888
sub ebx, 0x8e52c884
loop 0x404562
add eax, 0xc50402ba
sub eax, 0xc5030e73
xor ebx, ebx
add ebx, eax
add eax, 0xa07c4d9f
add eax, 0x5f83b266
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402b20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x402c11
test esi, esi
je 0x402c11
test ebx, ebx
je 0x402c11
mov eax, dword [ecx + 8]
test eax, eax
je 0x402c11
push edi
mov edi, dword [ebx]
lea ecx, [ebp - 8]
push ebx
push esi
push ecx
push 0
push edx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp ecx, 2
jne 0x402be4
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040355c
mov edi, eax
add esp, 4
test edi, edi
je 0x402be1
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, esi
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402bb4
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402bc7
sub esi, ecx
sar esi, 1
push edi
mov dword [ebx], esi
call fcn.004041a9
add esp, 4
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x14], 0
pop edi
jne 0x402c11
cmp ecx, 1
je 0x402bfa
cmp ecx, 7
je 0x402bfa
cmp ecx, 2
jne 0x402c11
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403565
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00403565
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4030e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x418008]
xor eax, esp
mov dword [esp + 0x78], eax
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x41a3e8
push 0x67
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41a4b8
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, edi
call fcn.004031d0
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call fcn.004087b0
add esp, 0xc
mov dword [esp + 0x30], 0x44
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
call fcn.00402cc0
lea ecx, [esp + 8]
cmp eax, 0xd
jl 0x403166
push 0xc
push str.SynFPApp.exe
jmp 0x40316d
push 0x11
push str.SynFPAppNet35.exe
call fcn.00402210
cmp dword [esp + 0x1c], 8
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x1c], 8
jb 0x4031b2
push dword [esp + 8]
call fcn.004041a9
add esp, 4
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
xor ecx, esp
call fcn.00403565
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d3bd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004083f3
mov dword [ebp - 0x14], eax
cmp dword [0x41a3c4], esi
jne 0x40d4b0
push 0x800
push esi
push 0x41643c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d590
push esi
push esi
push 0x41643c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d590
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d590
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41a3c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41a3c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41a3cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a3d4], eax
test eax, eax
je 0x40d4ad
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a3d0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4d5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4c8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d4ea
push 4
pop eax
jmp 0x40d592
cmp dword [ebp - 0x14], esi
je 0x40d4ea
push dword [0x41a3c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4cf
mov eax, dword [0x41a3d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d548
cmp dword [0x41a3d4], edi
je 0x40d548
push eax
call ebx
push dword [0x41a3d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d548
test eax, eax
je 0x40d548
call ecx
test eax, eax
je 0x40d53d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d53d
test byte [ebp - 8], 1
jne 0x40d548
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d578
mov eax, dword [0x41a3c8]
cmp eax, edi
je 0x40d575
push eax
call ebx
test eax, eax
je 0x40d575
call eax
mov esi, eax
test esi, esi
je 0x40d575
mov eax, dword [0x41a3cc]
cmp eax, edi
je 0x40d575
push eax
call ebx
test eax, eax
je 0x40d575
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41a3c4]
call ebx
test eax, eax
je 0x40d590
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d592
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403565
mov esp, ebp
pop ebp
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40611c
pop dword [ebp - 0x4c]
mov eax, 0x694a8424
add eax, 0x96f5dcf8
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x47d9cc03
add dword [ebp - 0x5c], 0x6787948
mov dword [ebp - 0x58], 0x8b8d984a
add dword [ebp - 0x58], 0xa6a5b3fb
mov dword [ebp - 0x54], 0x8b0a050f
sub dword [ebp - 0x54], 0x3ebdc0e1
mov dword [ebp - 0x50], 0xb130474
sub dword [ebp - 0x50], 0xb130474
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x6e5e79b3
add dword [ebp - 0x5c], 0x613efa3
mov dword [ebp - 0x58], 0xf0e10b90
add dword [ebp - 0x58], 0x508b55e5
mov dword [ebp - 0x54], 0x6ef26d2a
sub dword [ebp - 0x54], 0xb8300be
mov dword [ebp - 0x50], 0xe4c25fe2
add dword [ebp - 0x50], 0x1b3da01e
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3593f
push 0
call eax
mov ecx, 0x3192440
sub ecx, 0x318e05f
xor edx, edx
add edx, eax
mov esi, 0x8e9c5395
sub esi, 0x8e5b5395
add esi, dword [ebp - 0x4c]
mov ebx, 0x7dea761f
sub ebx, 0x50e593a1
sub dword [ebp - 0x40], ecx
mov edi, dword [esi]
add dword [ebp - 0x3c], esi
xor edi, ebx
mov dword [edx], edi
sub dword [ebp - 0x24], 0x23639844
add edx, 0x846b52c8
sub edx, 0x846b52c4
add esi, 0x35200bc1
add esi, 0xcadff443
loop 0x406236
add eax, 0xddee6b7e
add eax, 0x221296d9
xor ebx, ebx
add ebx, eax
add eax, 0xb482d65a
sub eax, 0xb482d655
mov ecx, 0x5064fc1d
add ecx, 0xafdb03e3
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4049d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x55d910]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x404a32
push 0
push str.error1
push str.error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d9122
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x58]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.00436b30
add esp, 4
lea ecx, [esp + 0x18]
push 0x11
push str.lddownloader_en_
call fcn.00404070
lea eax, [esp + 0x18]
push eax
call fcn.004368f0
add esp, 4
test al, al
jne 0x404a7d
lea eax, [esp + 0x18]
push eax
call fcn.00436910
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [esp + 0x20]
call fcn.00404070
call fcn.004328c0
sub esp, 0x18
lea esi, [esp + 0x30]
mov edi, esp
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x40]
cmovae esi, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
lea eax, [esi + eax*2]
push eax
push edx
call fcn.00404b70
call fcn.004328e0
push str._r_n_r_n_start_run
push 0x26
push str.wWinMain
call fcn.00432820
add esp, 0x24
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], vtable.DownloadImpl.0
call fcn.0043b5a0
push dword [esp + 0xc]
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
push dword [esp + 0x14]
call fcn.00406000
call fcn.00456bd0
lea ecx, [esp + 0x30]
call fcn.004063f0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 8
jb 0x404b4c
push dword [esp + 0x18]
call fcn.004d9140
add esp, 4
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004d9122
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405c00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x567ce0], 0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x408390
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513a9e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x55d910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5682c0]
mov dword [ebp - 0xac], 0
test al, 1
jne 0x40852e
or eax, 1
mov dword [0x5682c0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x12
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa4], str.ko_KR
push ecx
movq qword [0x5682c4], xmm0
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], str.en_US
mov dword [ebp - 0x98], 0x2a
mov dword [ebp - 0x94], str.vi_VN
mov dword [ebp - 0x90], 0x1e
mov dword [ebp - 0x8c], str.th_TH
mov dword [ebp - 0x88], 0x19
mov dword [ebp - 0x84], str.ru_RU
mov dword [ebp - 0x80], 0x22
mov dword [ebp - 0x7c], str.uk_UA
mov dword [ebp - 0x78], 0x16
mov dword [ebp - 0x74], str.pt_PT
mov dword [ebp - 0x70], 0x1f
mov dword [ebp - 0x6c], str.tr_TR
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], str.es_ES
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], str.fr_FR
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x54], str.de_DE
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], str.ja_JP
mov dword [ebp - 0x48], 0x21
mov dword [ebp - 0x44], str.in_ID
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], str.ar_IL
mov dword [ebp - 0x38], 0x29
mov dword [ebp - 0x34], str.fa_IR
mov dword [ebp - 0x30], 0x39
mov dword [ebp - 0x2c], str.hi_IN
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.it_IT
mov dword [ebp - 0x20], 0x3e
mov dword [ebp - 0x1c], str.ms_MY
call fcn.004033e0
push 0x51c930
call fcn.004d990f
add esp, 4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x408597
mov ecx, 0xc04
cmp ax, cx
je 0x408574
mov ecx, 0x1404
cmp ax, cx
je 0x408574
mov ecx, 0x404
cmp ax, cx
je 0x408574
mov ecx, 0x7c04
cmp ax, cx
je 0x408574
push str.zh_TW
jmp 0x4085e6
push 5
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push str.zh_TW
mov word [esi], ax
call fcn.00404840
jmp 0x4085ed
mov edi, dword [0x5682c4]
mov edx, ecx
mov ecx, edi
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x4085d0
lea ebx, [ebx]
cmp dword [eax + 0x10], edx
jge 0x4085ba
mov eax, dword [eax + 8]
jmp 0x4085be
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4085b0
cmp ecx, edi
je 0x4085d0
mov dword [ebp - 0x14], ecx
cmp edx, dword [ecx + 0x10]
jge 0x4085d3
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, edi
je 0x4085e1
push dword [eax + 0x14]
jmp 0x4085e6
push str.en_US
mov ecx, esi
call fcn.00404970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d9122
mov esp, ebp
pop ebp
ret