joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451300
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4513a3
test eax, eax
jbe 0x4513a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4513a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45134e
xor esi, esi
jmp 0x451354
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45137f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00405b30
add esi, eax
push esi
mov ebx, esi
call fcn.00405b30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x451360
pop ebp
test edi, edi
pop edi
jne 0x4513a3
test ebx, ebx
je 0x4513a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00468370
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4514e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4515fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4515fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00479df4
mov esi, eax
test esi, esi
je 0x4515fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4515fd
mov ecx, esi
call fcn.00451450
cmp edi, eax
jge 0x4515fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x451583
mov dword [esp + 0x34], 1
jmp 0x4515de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4515fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00450a50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x45ab20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45ab6c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45ab6c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x45ab56
push eax
call ebp
test ax, ax
jl 0x45ab64
inc esi
add edi, 4
cmp esi, 6
jb 0x45ab48
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0045a820
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45d1a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45d200
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45d200
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45d200
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45d200
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45d210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47a797
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a7cf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047884e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478826
jmp 0x47a7db
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47be88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47beca
call fcn.004820bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47beca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47bec1
xor eax, eax
jmp 0x47bed2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047bed8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4825ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48261d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48263b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00482555
jmp 0x48263b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48263b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00482555
test edi, edi
mov eax, edi
jne 0x482625
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b8a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8a90
mov eax, 1
add ebx, ebx
jne 0x4b8ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8ac4
jne 0x4b8ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ae3
dec eax
add ebx, ebx
jne 0x4b8ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8aa8
add ebx, ebx
jne 0x4b8adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8b35
xor ecx, ecx
sub eax, 3
jb 0x4b8afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8b6a
sar eax, 1
mov ebp, eax
jmp 0x4b8b06
add ebx, ebx
jne 0x4b8b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ad4
inc ecx
add ebx, ebx
jne 0x4b8b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ad4
add ebx, ebx
jne 0x4b8b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8b16
jne 0x4b8b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8b46
jmp 0x4b8a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8b54
add edi, ecx
jmp 0x4b8a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8b72
cmp byte [edi], 0x11
jne 0x4b8b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8b77
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc010c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc0260]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8ba4
mov ecx, edi
jns 0x4b8bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc0264]
or eax, eax
je 0x4b8be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8bc1
call dword [esi + 0xc0274]
mov ebp, dword [esi + 0xc0268]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b8c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x40115f
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x401cf8
call fcn.00401910
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004018ba
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxGetModuleState
movzx ecx, word [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4011a3
xor esi, esi
jmp 0x401298
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jbe 0x40119c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40119c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x40119c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.004018d8
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 2
jle 0x401229
inc eax
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401229
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401229
push ebx
push str.Install_driver
push str.Cant_create_directory__Install_fail_
jmp 0x401283
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x401255
push str.Install_driver
push str.Cant_create_file__Install_fail_
jmp 0x401283
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40128f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push str.Install_driver
push str.Cant_write_directory__Install_fail_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40119c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x401459
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x401d20
call fcn.00401910
sub esp, 0x31c
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.004018ba
xor esi, esi
push str.SOFTWARE_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0x104
call sub.MFC42.DLL_CString::operator_1
push str.UMSD
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push 0x403308
push esi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push str.DesPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4015e0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x120]
push str.Setting.dll
push eax
lea eax, [ebp - 0x328]
push str._s_s
push eax
call edi
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x328]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4015e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x120]
push str.AdvDrvIns.exe
push eax
lea eax, [ebp - 0x224]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x224]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4015e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, str.Install
push 0x40004
push ebx
push str.Detect_you_have_installed_before__you_must_uninstall_first__n_t_tUninstall_now_
push esi
call edi
cmp eax, 6
jne 0x4015cf
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 0x4030bc
push esi
push eax
push eax
lea eax, [ebp - 0x224]
push eax
push 1
call dword [sym.imp.MSVCRT.dll__spawnl]
add esp, 0x14
jmp 0x4015dd
push 0x40000
push ebx
push str.Please_Uninstall_first_
push esi
call edi
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4015fd
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40164b
push str.Couldnt_get_OS_Version.
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x84]
dec eax
je 0x401691
dec eax
je 0x401668
push str._The_OS_not_98_2000_or_Whistler
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x401663
cmp dword [ebp - 0x8c], 0
jne 0x401681
mov eax, 0x7d0
leave
ret
cmp dword [ebp - 0x8c], 1
jne 0x401663
mov eax, 0x7d1
leave
ret
cmp dword [ebp - 0x90], 4
jne 0x401663
cmp dword [ebp - 0x8c], 0xa
jne 0x4016a7
push 0x62
jmp 0x401665
cmp dword [ebp - 0x8c], 0x5a
jne 0x401663
push 0x63
jmp 0x401665

Function at 0x405e73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 0xe]
test esi, esi
jne 0x405e8c
xor eax, eax
jmp 0x405f0b
xor edx, edx
lea ecx, [ebp - 0x400]
and dword [ebp - 0x400], edx
mov eax, dword [ecx]
add eax, eax
test byte [ecx + 3], 0x80
je 0x405eb6
mov dword [ebp + edx*4 - 0x3fc], eax
xor eax, esi
mov dword [ebp + edx*4 - 0x400], eax
jmp 0x405ec6
mov dword [ebp + edx*4 - 0x400], eax
xor eax, esi
mov dword [ebp + edx*4 - 0x3fc], eax
inc edx
add ecx, 4
inc edx
cmp edx, 0x100
jb 0x405e9a
mov ecx, dword [edi + 0xa]
and dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x405f00
movzx edx, byte [eax]
movzx esi, byte [ebp + 0x13]
xor edx, esi
mov esi, dword [ebp + 0x10]
shl esi, 8
mov edx, dword [ebp + edx*4 - 0x400]
xor edx, esi
inc eax
dec ecx
mov dword [ebp + 0x10], edx
jne 0x405ee1
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp ecx, dword [edi + 0x12]
sete al
pop edi
pop esi
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5df447f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d9363a5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401cf0
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4260a6
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x430bc4]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
push edi
mov eax, dword [0x430bc4]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
push 0x3ff
xor edi, edi
lea eax, [esp + 0x19]
push edi
push eax
mov byte [esp + 0x20], 0
call fcn.00411bc0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00405635
test eax, eax
jne 0x401d74
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.00410843
add esp, 4
mov eax, 1
jmp 0x401e54
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..._data_update.ini
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x42aa29
push str.ServerList
push str.Setting
call esi
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call fcn.00402530
push str..._data_update.ini
push 0x400
lea eax, [esp + 0x1c]
push eax
push 0x42aa29
push str.NoteFile
push str.Setting
mov dword [esp + 0x438], 0
call esi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402530
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x424], 1
call fcn.004010d0
add esp, 4
lea esi, [esp + 0x10]
call fcn.004012c0
mov byte [esp + 0x420], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x420], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0040fe7a
add esp, 0x418
ret

Function at 0x402780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402799
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4027d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4027d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4027d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4027c0
cmp esi, eax
jb 0x4027da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40478d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4047b6
call fcn.004067e5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4047d9
push eax
push dword [esi + 4]
call fcn.004046f5
push esi
push eax
mov ecx, 0x432080
call fcn.00404386
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40512a
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4258ca
call fcn.004113e7
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004050ec
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402940
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x405190
push eax
push dword [esi + 8]
call fcn.004046f5
push dword [esi + 0xc]
mov ecx, 0x432080
push eax
call fcn.00404386
mov eax, esi
call fcn.00411486
ret 0x18

Function at 0x408931
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40893a
xor eax, eax
jmp 0x4089a3
cmp dword [esp + 8], 0
jne 0x408946
call fcn.00402de1
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004144b4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x408981
push dword [esi + 0x10]
call fcn.004141f9
test eax, eax
pop ecx
jne 0x408981
mov esi, dword [esi + 0xc]
call fcn.004117da
push esi
push dword [eax]
push 1
call fcn.0040f834
push dword [esi + 0x10]
call fcn.00414228
test eax, eax
pop ecx
je 0x4089a0
push dword [esi + 0x10]
call fcn.0041414d
push eax
call fcn.00401000
pop ecx
pop ecx
jmp 0x40896f
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4089ac
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4089b6
call fcn.00402de1
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004145e9
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4089e3
mov esi, dword [esi + 0xc]
call fcn.004117da
push esi
push dword [eax]
push 1
call fcn.0040f834
pop esi
ret 8

Function at 0x40fe7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430bc4]
jne 0x40fe84
repz ret
jmp fcn.004154fc