joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417fc2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x421838
call fcn.00417e20
push 8
call fcn.00418b51
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4292ec], esi
jne 0x417ff6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4292e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4292e4], al
cmp dword [ebp + 0xc], edi
jne 0x418040
cmp dword [0x429bc8], edi
je 0x418030
mov eax, dword [0x429bc4]
sub eax, 4
mov dword [0x429bc4], eax
cmp eax, dword [0x429bc8]
jb 0x418030
mov eax, dword [eax]
cmp eax, edi
je 0x418011
call eax
jmp 0x418011
push 0x428054
mov eax, 0x428050
call fcn.00417f40
pop ecx
push 0x428060
mov eax, 0x428058
call fcn.00417f40
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x418071
cmp dword [ebp + 0x10], edi
jne 0x41807f
mov dword [0x4292ec], esi
push dword [ebp + 8]
call fcn.00417efe
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41807e
push 8
call fcn.00418a9c
pop ecx
ret
call fcn.00417e5b
ret

Function at 0x419e60
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x428108]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x428700]
je 0x419e95
inc eax
cmp eax, 0x13
jb 0x419e86
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428700]
jne 0x419fbb
mov eax, dword [0x429298]
cmp eax, 1
je 0x419f93
cmp eax, edx
jne 0x419ec5
cmp dword [0x428104], 1
je 0x419f93
cmp ecx, 0xfc
je 0x419fbb
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x419efb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004170d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00416b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419f2f
mov eax, edi
push eax
call fcn.00416b50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x421e88
push edi
call fcn.0041c1f0
add esp, 0x10
push edi
call fcn.00416b50
push dword [esi + 0x428704]
mov ebx, eax
call fcn.00416b50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417de0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004170d0
push edi
push ebx
call fcn.004170e0
push 0x421e68
push ebx
call fcn.004170e0
push dword [esi + 0x428704]
push ebx
call fcn.004170e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c650
add esp, 0x2c
jmp 0x419fbb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x428704]
push dword [esi]
call fcn.00416b50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004177c2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41a898
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41a8c6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41a8cd
cmp ebx, dword [eax + 4]
jae 0x41a8cd
xor eax, eax
jmp 0x41aabd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41a8de
xor eax, eax
inc eax
jmp 0x41aabc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41a8f4
cmp ecx, edx
jae 0x41aa39
cmp dword [eax + 4], 0
je 0x41a8fd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41a8e5
cmp dword [ebp + 8], 0
je 0x41a91f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41aa39
cmp eax, esi
jae 0x41aa39
mov eax, dword [0x429580]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41a944
cmp dword [esi*4 + 0x429588], edi
je 0x41aa3d
inc esi
cmp esi, eax
jl 0x41a932
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41aab9
cmp dword [ebp - 8], 0x1000000
jne 0x41aab9
test byte [ebp - 0xc], 0xcc
je 0x41a9c2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41aab9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41aab9
cmp word [eax + 0x18], 0x10b
jne 0x41aab9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41aab9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41a9c2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41a9c2
test byte [ecx + 0x27], 0x80
jne 0x41aa39
push 1
push 0x4295c8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x41a8d6
mov ecx, dword [0x429580]
test ecx, ecx
mov edx, ecx
jle 0x41a9f6
lea eax, [ecx*4 + 0x429584]
cmp dword [eax], edi
je 0x41a9f6
dec edx
sub eax, 4
test edx, edx
jg 0x41a9ea
test edx, edx
jne 0x41aa27
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41aa03
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41aa1b
lea eax, [edx*4 + 0x429588]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41aa09
cmp ecx, 0x10
jge 0x41aa27
inc ecx
mov dword [0x429580], ecx
push 0
push 0x4295c8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x41a8d6
xor eax, eax
jmp 0x41aabc
test esi, esi
jle 0x41a8d6
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4295c8
call ebx
test eax, eax
jne 0x41a8d6
cmp dword [esi*4 + 0x429588], edi
je 0x41aa93
mov eax, dword [0x429580]
lea esi, [eax - 1]
test esi, esi
jl 0x41aa81
cmp dword [esi*4 + 0x429588], edi
je 0x41aa7d
dec esi
jns 0x41aa71
test esi, esi
jge 0x41aa91
cmp eax, 0x10
jge 0x41aa8c
inc eax
mov dword [0x429580], eax
lea esi, [eax - 1]
jmp 0x41aa93
je 0x41aaab
xor ecx, ecx
test esi, esi
jl 0x41aaab
lea eax, [ecx*4 + 0x429588]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41aa99
push 0
push 0x4295c8
call ebx
jmp 0x41a8d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c650
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x429654], ebx
push esi
push edi
jne 0x41c6d0
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c70b
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x429654], eax
je 0x41c70b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x429658], eax
call esi
cmp dword [0x4292ac], 2
mov dword [0x42965c], eax
jne 0x41c6d0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x429664], eax
je 0x41c6d0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x429660], eax
mov eax, dword [0x429660]
test eax, eax
je 0x41c715
call eax
test eax, eax
je 0x41c6fc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x429664]
test eax, eax
je 0x41c6fc
test byte [ebp - 8], 1
jne 0x41c715
cmp dword [0x4292b8], 4
jb 0x41c70f
or byte [ebp + 0x12], 0x20
jmp 0x41c734
xor eax, eax
jmp 0x41c744
or byte [ebp + 0x12], 4
jmp 0x41c734
mov eax, dword [0x429658]
test eax, eax
je 0x41c734
call eax
mov ebx, eax
test ebx, ebx
je 0x41c734
mov eax, dword [0x42965c]
test eax, eax
je 0x41c734
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x429654]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41f3a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
mov dword [esp + 0x10], 2
je 0x41e283
inc eax
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push edi
mov edi, dword [esp + 0x58]
mov ebp, ebx
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x41e29f
lea eax, [esp + 0x48]
push edi
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0040c5f5
mov esi, eax
cmp esi, 0xffffffff
je 0x41e306
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x41e2c0
dec eax
mov dword [esp + 0x7c], eax
test eax, eax
je 0x41e306
cmp ebp, 0xffffffff
mov edi, dword [esp + 0x58]
jne 0x41e2e7
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
push eax
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.0040c353
add esi, dword [esp + 0x74]
jmp 0x41e290
dec ebp
jne 0x41e300
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
push ecx
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.0040c353
mov ebp, ebx
add esi, dword [esp + 0x74]
jmp 0x41e290
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x30]
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0040258d
mov eax, dword [esp + 0x40]
mov ebx, 0x10
cmp eax, ebx
jb 0x41e347
mov eax, dword [esp + 0x2c]
push eax
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x41e36b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00415f5a
add esp, 4
mov eax, dword [esp + 0x78]
pop edi
pop ebp
cmp eax, ebx
pop ebx
jb 0x41e383
mov edx, dword [esp + 0x58]
push edx
call fcn.00415f5a
add esp, 4
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41eee0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x114]
test eax, eax
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], 0
jne 0x41ef19
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push ecx
jmp 0x41ef26
lea edx, [esp]
push edx
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
add esp, 0x10c
ret 8

Function at 0x41ef50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x114]
test eax, eax
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], 0
jne 0x41ef88
push eax
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x41ef93
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
add esp, 0x10c
ret 8

Function at 0x41efb0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x4004667f
push ecx
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x41efd8
or eax, 0xffffffff
pop ecx
ret 4
mov eax, dword [esp]
pop ecx
ret 4
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406844
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406980
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bf050], 0
je 0x405e41
cmp word [0x4bf32c], 0xd7b2
jne 0x405e09
cmp dword [0x4bf334], 0
jbe 0x405e09
mov eax, 0x4bf328
call dword [0x4bf344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4bc034], 0
je 0x405ff2
mov edx, esi
mov eax, ebx
call dword [0x4bc034]
jmp 0x406001
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4bf051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f94
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408614
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406844
cmp si, word [0x4bc7dc]
jb 0x4086ae
cmp si, word [0x4bc9dc]
ja 0x4086ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4bc7dc]
jae 0x408688
mov edi, ebx
dec edi
jmp 0x4086a9
cmp si, word [ebx*8 + 0x4bc7dc]
jbe 0x408698
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4bc7e0]
call fcn.00408524
jmp 0x4086ae
cmp edi, dword [ebp - 0xc]
jae 0x408672
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40875d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x164]
push 0x408798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x168]
push 0x4087a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408782
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040683c
ret
Function at 0x408934
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c1b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c1b70]
jne 0x408980
mov eax, esi
mov edx, 0x4c1b74
mov ecx, 0x55
call fcn.00406a2c
push 0x4c1b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a23
push 0x4c1b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406844
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f1
cmp byte [0x4c1b54], 0
je 0x4089b6
mov edx, esi
mov eax, ebx
call fcn.00408814
jmp 0x4089f1
mov edx, esi
mov eax, ebx
call fcn.00408614
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f1
cmp dword [esi], 0
je 0x4089da
mov eax, esi
mov edx, 0x408a54
call fcn.00406c40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408614
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c40
push 0x4c1b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c1b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068d0
push eax
push 0x4c1b74
call sub.kernel32.dll_lstrcpynW
push 0x4c1b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a40
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x409128
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040682c
mov eax, dword [ebp - 0x21c]
call fcn.0040682c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406844
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4091c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409293
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409203
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408c78
cmp dword [ebp - 0x220], 0
je 0x40923b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040901c
pop ecx
mov ebx, eax
jmp 0x409293
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408934
mov eax, dword [ebp - 0x224]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409286
cmp byte [0x4c1b54], 0
jne 0x409286
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408934
mov eax, dword [ebp - 0x228]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409293
push ebp
call fcn.004090cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4092a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040683c
ret

Function at 0x40cb94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c1c58
push 0xa
push 0x40cc28
mov eax, dword [0x4c1c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cbb8
call fcn.00418cb0
push ebx
mov eax, dword [0x4c1c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cbcf
call fcn.00418cb0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cbe1
call fcn.00418cb0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c1c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c1c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c1c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c1c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c1c70], edx
pop esi
pop ebx
ret
Function at 0x4116f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411799
test eax, edx
je 0x41179c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411719
push edx
mov edx, eax
mov eax, esp
call fcn.00406a48
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41172f
push eax
lea eax, [esp + 8]
call fcn.00406a48
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41173e
movzx eax, word [eax]
sub eax, ecx
jmp 0x411765
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41177f
add ecx, 4
js 0x411756
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41177c
push eax
mov eax, ecx
mov edx, 2
call fcn.0040606c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411763
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411765
xor eax, eax
ret
test eax, eax
je 0x4117ac
test edx, edx
jne 0x411700
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415ea4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406980
jmp 0x415ee6
mov eax, ebx
mov edx, esi
call fcn.00406844
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415ef0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415f12
movzx eax, word [esp]
jmp 0x415f14
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4166a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4167c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004164b4
mov esi, eax
mov eax, dword [0x4be450]
cmp byte [eax], 0
je 0x416771
mov eax, dword [0x4be1d8]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41667c]
call fcn.00408010
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4167e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4167ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4be174]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c1c3c]
call fcn.00408104
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4167d0
lea eax, [ebp - 4]
mov edx, dword [0x41667c]
call fcn.0040801c
ret

Function at 0x417980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417a56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406898
lea eax, [ebp - 4]
call fcn.00407230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417a40
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417a23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417a68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417a23
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a40
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a5d
lea eax, [ebp - 4]
call fcn.00406834
ret