joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 1
call fcn.00404640
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x4156e0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4048f5
push esi
call fcn.00404c10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404911
push esi
call fcn.00404c10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
call fcn.00404670
add esp, 4
test eax, eax
jne 0x40493c
push esi
call fcn.00404c10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x404d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404d24
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404d37
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00404eb0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x404d6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x404d90
mov cx, word [eax + 0xe]
imul ecx, dword [eax + 4]
add ecx, 0x1f
shr ecx, 3
and ecx, 0x1ffffffc
imul ecx, dword [eax + 8]
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea edi, [ecx + edx*4]
mov ecx, dword [eax]
add edi, ecx
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x404dc1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x417620]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
add esi, edx
mov edx, dword [eax + 0x20]
push ebx
lea edi, [eax + edx*4]
mov edx, dword [eax]
mov eax, ecx
add 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]
call ebp
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x405850
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
push edi
lea edi, [esi + 0x14]
xor ebx, ebx
test cl, cl
mov ecx, esi
setne bl
call fcn.004057f0
test ebx, ebx
je 0x40587a
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40588a
mov eax, str.IDM_MUSIC
push str.MIDI
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40592a
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40592a
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push ebx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea ecx, [esp + 0x20]
push 0x41761c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x4157ac
push edi
call fcn.0040cd15
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push edx
push 1
push eax
call fcn.0040cf8b
push ebx
call fcn.0040ce64
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 8]
push edi
push ecx
mov ecx, esi
call fcn.00405940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x406290
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4062a3
push eax
call fcn.0040c692
add esp, 4
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040c69d
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
push 0
and ecx, 3
push 1
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
cmp eax, 0xffffffff
mov dword [ebx], eax
pop ebp
jne 0x406311
mov dword [ebx], 0
xor eax, eax
pop ebx
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 2
push 0
push ecx
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
je 0x40630b
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
je 0x40630b
mov ecx, ebx
call fcn.00406850
pop ebx
ret 8

Function at 0x4063b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xe4
lea eax, [esp + 4]
push eax
call fcn.00406480
mov eax, dword [esp + 0xe8]
lea ecx, [esp]
push 0
push ecx
lea edx, [esp + 0xc]
push pe_nt_image_headers32
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
xor eax, eax
cmp ecx, 0xe0
sete al
add esp, 0xe4
ret 4

Function at 0x406500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebx, ecx
push 2
call fcn.00406760
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
lea ebp, [ecx + eax + 0xf8]
mov ecx, ebx
call fcn.00406750
test eax, eax
jle 0x4065b1
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x14]
mov ecx, 0xa
mov esi, ebp
lea edi, [esp + 0x1c]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x40657b
mov ecx, dword [esp + 0x14]
cmp ebp, ecx
jne 0x406569
mov edx, dword [ebx + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esi, edx
add ecx, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
jmp 0x40657b
mov eax, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jbe 0x40657b
add eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x28
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add ebp, 0x28
dec eax
mov dword [esp + 0x10], eax
jne 0x406534
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x4065c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x4066bb
push ebx
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00406400
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x1c]
sub ebp, eax
push 0
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ecx, esi
call fcn.004063b0
push edi
mov ecx, esi
call fcn.00406500
push 2
mov ecx, esi
call fcn.004067d0
mov ecx, esi
mov ebx, eax
call fcn.00406750
lea eax, [eax + eax*4]
mov edx, ebx
lea ecx, [esp + 0x1c]
push 0
lea ebp, [ebp + eax*8 + 0xe0]
mov eax, dword [esi + 8]
sub edx, eax
push ecx
sub edx, ebp
add eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
push edi
call fcn.00407b50
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push 0
sub edx, eax
push ecx
add eax, ebx
push edx
push eax
push edi
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
sub ebx, eax
mov edx, dword [ecx + 0x70]
mov ecx, dword [esi + 0x24]
push ebx
push edx
push eax
push edi
call fcn.00407c80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4066ac
cmp eax, 0x10
mov esi, 0x10
ja 0x406690
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push 0x4157d0
push edi
call ebp
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x406684
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x407b90
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp eax, edi
jne 0x407bfa
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
mov ebx, 0x10
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebx
je 0x407bc7
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x41774c]
add ecx, ebx
mov dword [0x41774c], ecx
mov esi, dword [esi + 0x14]
test esi, esi
je 0x407c50
push edi
mov ecx, esi
call fcn.00409a70
test eax, eax
je 0x407bbf
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x407bdc
mov eax, dword [0x41774c]
pop edi
pop esi
pop ebx
ret 8
cmp eax, 2
jne 0x407c2d
cmp edi, 3
jne 0x407c2d
mov esi, dword [esi + 0x14]
test esi, esi
je 0x407c50
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.00409ab0
test eax, eax
je 0x407bbf
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x407c0f
mov eax, dword [0x41774c]
pop edi
pop esi
pop ebx
ret 8
mov esi, dword [esi + 0x14]
test esi, esi
je 0x407c50
mov ebx, dword [esp + 0x10]
push edi
push ebx
mov ecx, esi
call fcn.00409a40
test eax, eax
je 0x407bbf
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x407c38
mov eax, dword [0x41774c]
pop edi
pop esi
pop ebx
ret 8
Function at 0x408f40
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40902d
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40902d
mov ecx, dword [esi + 8]
push ebx
push ebp
lea eax, [esp + 0xc]
push edi
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x408d30
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00403330
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
call fcn.00403330
add esp, 0x20
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00408be0
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4

Function at 0x409a70
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
push 8
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], 8
je 0x409a91
xor eax, eax
ret 4
mov eax, dword [0x41774c]
add eax, 8
mov dword [0x41774c], eax
mov eax, 1
ret 4

Function at 0x409cf0
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
add ecx, 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
ret 4
Function at 0x409d20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
mov ebp, ecx
push edi
and ebp, 7
neg ebp
and ebp, 7
test eax, eax
je 0x409e3c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x18], 0
test edi, edi
je 0x409dde
push 0x400
call fcn.0040c8b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409dd5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
cmp eax, 0x400
mov dword [esp + 0x18], edx
jb 0x409dd5
lea edx, [esp + 0x1c]
push 0
push edx
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409d8c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409e02
cmp dword [ebx + 0x14], 1
jne 0x409e02
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x409e16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x409e4c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [ebx + 0x24]
lea edx, [esp + 0x18]
test eax, eax
push 0
push edx
je 0x409e9b
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x409e7d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push esi
call edi
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ebp
sub ecx, esi
push eax
mov eax, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x20]
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
add eax, ebp
cmp ecx, eax
je 0x409e2e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x40e6d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416cc0
cmp edx, dword [eax]
je 0x40e6f3
add eax, 8
inc ecx
cmp eax, 0x416d50
jl 0x40e6e4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416cc0]
jne 0x40e821
mov eax, dword [0x41775c]
cmp eax, 1
je 0x40e7fb
test eax, eax
jne 0x40e724
cmp dword [0x416c08], 1
je 0x40e7fb
cmp edx, 0xfc
je 0x40e821
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e75b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411240
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411330
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e79e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411330
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x413a14
push edi
call fcn.0040c930
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411240
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411250
lea eax, [ebp - 0xa0]
push 0x4139f4
push eax
call fcn.00411250
push dword [esi + 0x416cc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411250
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004113ab
add esp, 0x2c
pop edi
jmp 0x40e821
lea eax, [ebp + 8]
lea esi, [esi + 0x416cc4]
push 0
push eax
push dword [esi]
call fcn.00411330
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]
pop esi
leave
ret
Function at 0x412420
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push esi
mov esi, dword [esp + 0x318]
cmp byte [esi], 0
je 0x41245d
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x412457
sub ecx, 4
je 0x412498
dec ecx
je 0x41246a
test al, al
je 0x412458
cmp al, 0x20
je 0x412458
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x412449
jmp 0x412458
inc esi
cmp byte [esi], 0
jne 0x412433
mov eax, 1
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x41248e
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x41248e
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
jne 0x412481
xor eax, eax
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x41254f
push ebx
push edi
push 0x4157ac
push esi
call fcn.0040cd15
mov edi, eax
add esp, 8
test edi, edi
jne 0x4124d0
push 0x4157ac
push esi
call fcn.0040cd15
mov edi, eax
add esp, 8
test edi, edi
je 0x4124bc
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x41574c
push edx
call fcn.0040cd15
mov ebx, eax
push ebx
call fcn.00412760
add esp, 0xc
cmp eax, 0xffffffff
je 0x41251c
push edi
push eax
call fcn.0041273c
push ebx
call fcn.00412760
add esp, 0xc
cmp eax, 0xffffffff
jne 0x412507
push edi
call fcn.0040ce64
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push esi
push str._s__2__s
push ecx
call fcn.0040cc26
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x30c
ret
Function at 0x40dbe0
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x4686b7
call fcn.00463cb0
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40dcf8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0040eeca
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040de89
mov edi, dword [ebp - 0x10]
push edi
push str._SetLangFolderCommon___lang:_s
call fcn.004025b1
pop ecx
pop ecx
cmp dword [edi - 0xc], ebx
je 0x40dc6a
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
test eax, eax
je 0x40dc6a
mov eax, edi
jmp 0x40dcf3
push 1
push dword [ebp - 0x14]
call fcn.0040eeca
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040de89
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x40dcaa
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
test eax, eax
jne 0x40dc63
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x471c8c
push eax
call fcn.0040227e
call fcn.0040dd4f
test eax, eax
jne 0x40dcf0
cmp dword [esi + 8], eax
ja 0x40dcd3
push 0x80070057
call fcn.00401790
mov eax, dword [esi + 4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
lea eax, [edi - 0x10]
call fcn.004017c3
call fcn.00463d4f
ret
Function at 0x41099b
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x10]
cmp eax, ecx
jne 0x4109d3
mov dword [esi], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp eax, 0x2f05
je 0x4109c9
mov ecx, esi
call fcn.00410ba4
jmp 0x4109cf
mov dword [esi], 0x63
xor eax, eax
jmp 0x410a10
push ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4109ef
mov dword [esi], 0xd
jmp 0x4109b0
push edi
push 0x1000
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x410a0d
mov dword [esi], 0xe
jmp 0x4109b0
xor eax, eax
inc eax
leave
ret 4

Function at 0x410f59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x410f72
xor eax, eax
jmp 0x410ff5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp + 0xc]
xor edi, edi
inc edi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x410ff0
cmp dword [ebp - 4], edi
je 0x410fae
cmp dword [ebp - 4], 7
je 0x410fae
cmp dword [ebp - 4], 2
jne 0x410ff0
add eax, 2
push eax
push edi
call fcn.004478cd
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x410ff0
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax]
call esi
test eax, eax
jne 0x410fe7
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.004015c9
mov dword [ebp - 0x10], edi
push dword [ebp - 0xc]
call fcn.0044783f
pop ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413586
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test ebx, ebx
jl 0x413626
cmp ebx, dword [ecx + 0x14]
jge 0x413626
push esi
test edi, edi
jge 0x4135a5
xor esi, esi
jmp 0x4135a7
mov esi, edi
mov eax, dword [ecx + 0x10]
dec eax
cmp esi, eax
jge 0x4135b7
test edi, edi
jge 0x4135b9
xor edi, edi
jmp 0x4135b9
mov edi, eax
test edx, edx
jge 0x4135c1
xor esi, esi
jmp 0x4135c3
mov esi, edx
cmp esi, eax
jge 0x4135cf
test edx, edx
jge 0x4135d1
xor edx, edx
jmp 0x4135d1
mov edx, eax
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 8]
imul eax, edi
imul esi, ebx
add eax, esi
add eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x18]
pop esi
cmp ecx, 0x18
je 0x41360c
cmp ecx, 0x20
jne 0x413626
cmp edi, edx
jg 0x413626
sub edx, edi
inc edx
mov cl, byte [eax + 1]
xor byte [eax], 0x80
xor byte [eax + 2], 0x80
mov byte [eax + 1], cl
add eax, 4
dec edx
jne 0x4135f7
jmp 0x413626
cmp edi, edx
jg 0x413626
sub edx, edi
inc edx
mov cl, byte [eax + 1]
xor byte [eax], 0x80
xor byte [eax + 2], 0x80
mov byte [eax + 1], cl
add eax, 3
dec edx
jne 0x413613
pop edi
ret 4