joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097e0
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
lea ecx, [esp + 0x38]
call fcn.00407bc0
push str.WanNengSoftOnlineServiceOnlyOne
lea ecx, [esp + 0xc]
call fcn.00407bc0
mov eax, dword [esp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4098e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409853
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x40984d
push str._mConfig
push eax
call fcn.0041e330
add esp, 8
test eax, eax
je 0x40984d
sub eax, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x409853
push edi
jmp 0x4098e5
push 0
push 0
push 0
push 0x67
push 0
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
jne 0x409883
lea ecx, [esp + 8]
call fcn.004014e0
lea ecx, [esp + 0x34]
call fcn.004014e0
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 0x10
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0xc]
call fcn.004089b0
push esi
lea ecx, [esp + 0x10]
call fcn.00407c70
lea ecx, [esp + 0xc]
call fcn.00406330
lea ecx, [esp + 0xc]
call fcn.00407570
push esi
lea ecx, [esp + 0x10]
call fcn.00407fa0
lea ecx, [esp + 0xc]
call fcn.00408980
lea ecx, [esp + 8]
call fcn.004014e0
lea ecx, [esp + 0x34]
call fcn.004014e0
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
call fcn.004014e0
lea ecx, [esp + 0x34]
call fcn.004014e0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret 0x10

Function at 0x409f10
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x434250]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x409f8c
push 0x104
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
push eax
push str._.8X
push ecx
call fcn.0041e4ba
add esp, 0xc
mov ecx, dword [esp + 0x114]
call fcn.0041d05e
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a090
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x2000000
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40a0b9
pop edi
pop esi
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40a0cb
shr eax, 0x14
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40a0e0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a116
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
add esp, 8
ret 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x10], eax
ja 0x40a135
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
add esp, 8
ret 8
push esi
push eax
call fcn.0041e512
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xc], esi
je 0x40a254
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.0041e512
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40a253
mov ecx, dword [esp + 0x18]
mov edx, ecx
push edi
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a1ca
push esi
call fcn.0041db28
push ebp
call fcn.0041db28
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x10]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
add eax, ebp
push eax
call fcn.00418d30
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jbe 0x40a243
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x14]
push ecx
add edx, eax
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041db28
push ebp
call fcn.0041db28
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x40a500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push str._d__d__d__d:_d:_d
push esi
call fcn.0041e3fb
mov edx, dword [esp + 0x28]
add esp, 0x20
cmp edx, 0x7b2
jl 0x40a57c
cmp edx, 0xbb8
jle 0x40a585
mov edx, 0xbb7
mov dword [esp + 8], edx
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jl 0x40a593
cmp ecx, 0xc
jle 0x40a59c
mov ecx, 1
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x10]
cmp eax, 1
jl 0x40a5aa
cmp eax, 0x1f
jle 0x40a5b3
mov eax, 1
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
mov edi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x28]
push edi
push eax
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004026c0
mov edx, dword [eax]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40a602
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x40a650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4296c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00406110
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00405b40
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a6e2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40da50
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x429b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.0040d7e0
mov edx, dword [0x435644]
mov ecx, 0x435644
mov dword [esp + 0x18], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x435644]
mov ecx, 0x435644
mov byte [esp + 0x18], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
cmp eax, 1
mov byte [esp + 0x18], 2
jne 0x40dacb
push 9
push str.wnnzVer
lea ecx, [esp + 0xc]
call fcn.00405d40
jmp 0x40db0d
cmp eax, 2
jne 0x40dae2
push 9
push str.wnwgVer
lea ecx, [esp + 0xc]
call fcn.00405d40
jmp 0x40db0d
cmp eax, 3
jne 0x40daee
push str.wnpyVer
jmp 0x40db04
cmp eax, 5
jne 0x40dafa
push str.wnieVer
jmp 0x40db04
cmp eax, 7
jne 0x40db0d
push str.wnsrfVer
lea ecx, [esp + 8]
call fcn.004062b0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 8]
push ecx
push edi
push edx
push str.wnOldVer
push eax
push str.http:__wn.tt98.com_wnwb_update.aspx_
lea ecx, [esp + 0x24]
push str._s_s_s_s_s_s
push ecx
call fcn.00401cf0
mov esi, dword [esp + 0x2c]
add esp, 0x20
push 0
push 0
push 0
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
jg 0x40db6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40db8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x40dbd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40dc41
push edi
push 0x104
call fcn.0041e512
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push str.Start_Page
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x40dc5a
mov esi, dword [esp + 0x14]
push 0x42b680
mov ecx, esi
call fcn.00407bc0
mov eax, esi
pop esi
add esp, 0xc
ret 4
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0040ced0
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x415aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a52e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x42ce90
mov dword [esp + 0x18], ebx
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
lea edi, [esi + 0x20]
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x1c], 2
call fcn.00414fa0
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00414fa0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x415ea0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a58b
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x34]
push ebx
mov ecx, esi
call fcn.004159c0
test eax, eax
je 0x415eee
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [eax + 0x20]
call fcn.00414fa0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0x34
call fcn.0041db2d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x415f17
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, eax
call fcn.00415aa0
jmp 0x415f19
xor eax, eax
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x415f4b
mov dword [eax + 0x30], esi
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x2c], ecx
mov edx, dword [esi + 0x2c]
mov dword [edx + 0x30], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
test edi, edi
mov ecx, edi
je 0x415f80
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x415f73
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x415f51
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0
push 0
push 0
push 3
call fcn.00417470
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x4162e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42a5b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 8], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x3c]
mov dword [esi], 0x42b6a8
mov dword [esp + 0x14], ebx
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
push 0x42b680
mov byte [esp + 0x18], 1
mov dword [esi + 0x48], 4
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
call fcn.00414fa0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x416a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor edx, edx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 4], edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
mov dword [esp + 8], esi
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
lea eax, [esi + 0x34]
mov dword [esi], 0x42cf44
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
mov dword [eax], 0x42ce90
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x28], edx
mov dword [esp + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x30], eax
mov dword [eax + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
mov byte [esp + 0x18], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
call fcn.00414fa0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x417620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea ebp, [edx + 1]
mov dword [eax], ebx
mov al, byte [ebp]
cmp al, bl
je 0x4177db
cmp al, 0x23
jne 0x4177db
mov al, byte [edx + 2]
cmp al, bl
lea ecx, [edx + 2]
je 0x4177db
cmp al, 0x78
mov esi, 1
jne 0x417732
mov cl, byte [edx + 3]
cmp cl, bl
lea eax, [edx + 3]
je 0x41777b
push 0x3b
push eax
call fcn.0041f690
add esp, 8
cmp eax, ebx
je 0x41777b
cmp byte [eax], bl
je 0x41777b
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x78
je 0x417712
nop
cmp cl, 0x30
jl 0x4176d2
cmp cl, 0x39
jg 0x4176d2
movsx ecx, cl
sub ecx, 0x30
jmp 0x417701
cmp cl, 0x61
jl 0x4176e9
cmp cl, 0x66
jg 0x4176e9
movsx edx, cl
sub edx, 0x57
imul edx, esi
add ebx, edx
jmp 0x417706
cmp cl, 0x41
jl 0x41777b
cmp cl, 0x46
jg 0x41777b
movsx ecx, cl
sub ecx, 0x37
imul ecx, esi
add ebx, ecx
mov cl, byte [eax - 1]
shl esi, 4
dec eax
cmp cl, 0x78
jne 0x4176c0
cmp dword [esp + 0x38], 1
mov eax, dword [esp + 0x34]
jne 0x4177a1
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
call fcn.00416fe0
add esp, 0xc
jmp 0x4177ad
push 0x3b
push ecx
call fcn.0041f690
add esp, 8
cmp eax, ebx
je 0x41777b
cmp byte [eax], bl
je 0x41777b
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x23
je 0x417712
cmp cl, 0x30
jl 0x41777b
cmp cl, 0x39
jg 0x41777b
movsx edx, cl
mov cl, byte [eax - 1]
sub edx, 0x30
imul edx, esi
lea esi, [esi + esi*4]
add ebx, edx
shl esi, 1
dec eax
cmp cl, 0x23
jne 0x417756
jmp 0x417712
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00405c00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov byte [edx], bl
mov dword [eax], 1
mov ecx, dword [esp + 0x2c]
lea esi, [edi + ecx + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00405c00
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
xor edi, edi
mov esi, 0x4340ec
jmp 0x4177e8
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push edx
push ecx
call fcn.0041f640
add esp, 0xc
test eax, eax
je 0x417829
add esi, 0xc
inc edi
cmp esi, 0x434128
jl 0x4177e4
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov edx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov byte [edx], cl
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
lea eax, [edi + edi*2]
shl eax, 2
mov dl, byte [eax + 0x4340f4]
mov byte [ecx], dl
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [edx], 1
mov eax, dword [eax + 0x4340f0]
pop esi
add eax, ecx
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41cd04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041cff0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cd9f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4356ac]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41cd9f
cmp eax, 1
je 0x41cdc0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cd9f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41cd6c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41cd9b
xor eax, eax
inc eax
jmp 0x41cddf
cmp edi, eax
jae 0x41cda3
xor eax, eax
jmp 0x41cddf
cmp eax, esi
jae 0x41cdaa
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4356ac]
jmp 0x41cdc3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f07f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x430270
call fcn.0041f8e0
mov edi, 0x94
mov eax, edi
call fcn.0041cff0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4356ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4356b8], eax
mov edx, dword [esi + 8]
mov dword [0x4356bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4356b0], esi
cmp ecx, 2
je 0x41f0df
or esi, 0x8000
mov dword [0x4356b0], esi
shl eax, 8
add eax, edx
mov dword [0x4356b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f11a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f11a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f132
cmp eax, 0x20b
je 0x41f11f
mov dword [ebp - 0x1c], esi
jmp 0x41f146
cmp dword [ecx + 0x84], 0xe
jbe 0x41f11a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f140
cmp dword [ecx + 0x74], 0xe
jbe 0x41f11a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041faa8
pop ecx
test eax, eax
jne 0x41f172
cmp dword [0x435690], 1
jne 0x41f15f
call fcn.00425046
push 0x1c
call fcn.00424ecf
push 0xff
call fcn.00420637
pop ecx
pop ecx
call fcn.004257ef
mov dword [ebp - 4], esi
call fcn.00425644
test eax, eax
jge 0x41f18b
push 0x1b
call fcn.0041f05a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436dd8], eax
call fcn.00425522
mov dword [0x435688], eax
call fcn.00425480
test eax, eax
jge 0x41f1b1
push 8
call fcn.0041f05a
pop ecx
call fcn.0042524d
test eax, eax
jge 0x41f1c2
push 9
call fcn.0041f05a
pop ecx
push 1
call fcn.00420667
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f1d8
push eax
call fcn.0041f05a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004251f0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f1f9
movzx eax, word [ebp - 0x40]
jmp 0x41f1fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004097e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f21a
push edi
call fcn.00420792
call fcn.004207b4
jmp 0x41f24c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041f91b
ret
Function at 0x4206d1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4356ec], esi
push edi
jne 0x4206f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4356e8], esi
mov byte [0x4356e4], al
jne 0x420757
mov ecx, dword [0x436dac]
test ecx, ecx
je 0x420738
mov eax, dword [0x436da8]
sub eax, 4
cmp eax, ecx
jmp 0x420731
mov eax, dword [eax]
test eax, eax
je 0x420723
call eax
mov eax, dword [0x436da8]
sub eax, 4
cmp eax, dword [0x436dac]
mov dword [0x436da8], eax
jae 0x42071b
mov eax, 0x434034
mov esi, 0x43403c
cmp eax, esi
mov edi, eax
jae 0x420757
mov eax, dword [edi]
test eax, eax
je 0x420750
call eax
add edi, 4
cmp edi, esi
jb 0x420748
mov eax, 0x434040
mov esi, 0x434048
cmp eax, esi
mov edi, eax
jae 0x420776
mov eax, dword [edi]
test eax, eax
je 0x42076f
call eax
add edi, 4
cmp edi, esi
jb 0x420767
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x420790
push dword [ebp + 8]
mov dword [0x4356ec], 1
call fcn.00420637
pop ebp
ret