joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ffd3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004258ef
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004258ef
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43004a
cmp word [ecx], dx
je 0x43004a
mov eax, dword [0x43c8dc]
push edi
dec eax
push eax
push 0x43c7c8
call fcn.0042ff6c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4300bd
cmp word [eax], dx
je 0x4300bd
mov eax, dword [edi]
test eax, eax
je 0x43006e
cmp word [eax], dx
je 0x43006e
lea eax, [ebp - 0x10]
push eax
call fcn.0042f952
jmp 0x430077
lea eax, [ebp - 0x10]
push eax
call fcn.0042f9ed
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4300e7
mov eax, dword [0x43c7c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43c4b8
call fcn.0042ff6c
add esp, 0xc
test al, al
je 0x4300e7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4300b2
cmp word [eax], di
je 0x4300b2
lea eax, [ebp - 0x10]
push eax
call fcn.0042f952
pop ecx
jmp 0x4300e9
lea eax, [ebp - 0x10]
push eax
call fcn.0042f9ed
jmp 0x4300af
mov eax, dword [edi]
test eax, eax
je 0x4300d4
cmp word [eax], dx
je 0x4300d4
lea eax, [ebp - 0x10]
push eax
call fcn.0042f907
pop ecx
jmp 0x4300e7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4301b2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042fdf1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4301b2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4301b2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4301b2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43013f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00426020
test ebx, ebx
je 0x4301ad
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00426020
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4301b2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4301b2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004338e9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4301b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413732
leave
ret
Function at 0x435710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43573d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43573d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00456ba0
add esp, 0xc
lea ecx, [esp + 4]
call fcn.0041cc00
lea ecx, [esp + 4]
push ecx
call fcn.00420720
add esp, 4
cmp eax, 1
je 0x401056
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push str.APPDATA
push 0x517
mov ebx, str.LngCHS.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push str.APPDATA
push 0x518
mov ebx, str.LngCHT.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push str.APPDATA
push 0x519
mov ebx, str.LngENU.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push str.APPDATA
push 0x51a
mov ebx, 0x498780
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51b
mov ebx, str.Options.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push str.APPDATA
push 0x51c
mov ebx, 0x49879c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51d
mov ebx, str.ver.TXT
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push str.APPDATA
push 0x51e
mov ebx, str.AntVrsl.dat
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x542
mov ebx, 0x4987bc
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x543
mov ebx, 0x4987d8
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x567
mov ebx, 0x4987f0
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x548
mov ebx, 0x498808
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x568
mov ebx, 0x49881c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x55e
mov ebx, 0x498828
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x55f
mov ebx, 0x498850
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x551
mov ebx, 0x498864
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x55d
mov ebx, 0x498884
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x5dd
mov ebx, 0x49889c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x5de
mov ebx, 0x4988a8
lea ecx, [esp + 0x10]
call fcn.004014c0
mov ecx, dword [esp + 0x110]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044fdb2
add esp, 0x110
ret
Function at 0x401260
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00456ba0
add esp, 0xc
lea ecx, [esp]
call fcn.0041cc00
lea ecx, [esp]
push ecx
call fcn.00420720
add esp, 4
cmp eax, 1
je 0x4012b3
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 0
push str.APPDATA
push 0x517
mov ebx, str.LngCHS.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x518
mov ebx, str.LngCHT.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x519
mov ebx, str.LngENU.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51a
mov ebx, 0x498780
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51b
mov ebx, str.Options.ini
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51c
mov ebx, 0x49879c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51d
mov ebx, str.ver.TXT
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push str.APPDATA
push 0x51e
mov ebx, str.AntVrsl.dat
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x542
mov ebx, 0x4987bc
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x543
mov ebx, 0x4987d8
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x567
mov ebx, 0x4987f0
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x548
mov ebx, 0x498808
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x568
mov ebx, 0x49881c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x55e
mov ebx, 0x498828
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x55f
mov ebx, 0x498850
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x551
mov ebx, 0x498864
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0
push 0x4987d4
push 0x55d
mov ebx, 0x498884
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x5dd
mov ebx, 0x49889c
lea ecx, [esp + 0x10]
call fcn.004014c0
push 1
push 0x4987d4
push 0x5de
mov ebx, 0x4988a8
lea ecx, [esp + 0x10]
call fcn.004014c0
mov ecx, dword [esp + 0x108]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044fdb2
add esp, 0x108
ret

Function at 0x401760
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.85C17BC9_B280_4180_8D67_70688704E47D
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401794
mov eax, dword [esp + 0xc]
mov dword [eax + 0xac], 1
mov esi, 1
test edi, edi
je 0x40179f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 1
jne 0x4017bf
mov ecx, dword [0x4b92bc]
push esi
push esi
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, esi
pop esi
ret 4
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x4017d0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48c64b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00456ba0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
call fcn.00403280
push 1
push 0x498ac8
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0
call fcn.00402c40
push 0xa
push str.update.txt
lea ecx, [esp + 0xc]
call fcn.00402c40
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40189f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x118
ret
Function at 0x402d70
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 0x402d89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402dc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402dc0
lea ebx, [ebx]
cmp esi, eax
jae 0x402dc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402db0
cmp esi, eax
jb 0x402dca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4040e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4040f0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404100
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404a10
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x404a8a
xor eax, eax
cmp ecx, ebp
je 0x404a72
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x404a98
cmp ecx, ebp
je 0x404b2b
push ecx
jmp 0x404b25
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x404afa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404a10
mov ebx, eax
cmp ebx, ebp
jne 0x404b48
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404ac0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404b0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404bf0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404b2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fdb2
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404b57
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404b2d
Function at 0x40a340
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48d990
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push 0x4b9298
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
call fcn.00444ccd
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00444d74
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00444fa3
push 0
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.setProgressBarPb
call fcn.00403280
mov edi, 0x4b5f38
call fcn.0041fb30
push 0x4b9298
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00405d50
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00407b80
add esp, 4
lea edi, [esp + 0xc]
call fcn.0041c730
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a411
push eax
call fcn.00451d6f
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00444eaa
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x40ab00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48d586
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00456ba0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.0041c730
lea esi, [esp + 0x14]
mov dword [esp + 0x124], 0
call fcn.0041c910
push 0x49a277
lea ecx, [esp + 0x10]
call fcn.00403280
push 0xc
push str.explorer.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 1
call fcn.00402c40
push 2
push 0x499f00
lea ecx, [esp + 0x14]
call fcn.00402c40
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40abb0
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402c40
mov edx, dword [esp + 0xc]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [esp + 0x124], 0
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 0x40abfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ac0e
push eax
call fcn.00451d6f
add esp, 4
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x11c
ret
Function at 0x40b9f0
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
cmp dword [ebx + 0x800], esi
jbe 0x40ba2a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov eax, dword [ebx + esi*4]
push eax
push 0
push 1
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 0x800]
jb 0x40ba03
pop edi
pop ebp
xor eax, eax
pop esi
ret

Function at 0x40ba30
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c606
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call fcn.00456ba0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00436fa8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bab6
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x138], ebx
call fcn.00436fa8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bae7
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xd
push str.zjrcbank_html
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.00403170
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push 0x49a2d8
push eax
call fcn.0040b660
mov esi, dword [esp + 0x28]
push esi
call fcn.00420720
add esp, 0x14
cmp eax, 1
je 0x40bb54
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40bb7e
push esi
call fcn.00420720
add esp, 4
cmp eax, 1
jne 0x40bb7e
push esi
push 0x100
push edi
mov dword [esp + 0x1c], 1
call fcn.00450626
add esp, 0xc
push 0x498ac8
push 0x100
push edi
call fcn.0045068e
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x138], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret
Function at 0x40c0c0
Capabilities:
Get hostname

Disassembly:
mov eax, 0x1360
call fcn.00454d40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x135c], eax
push ebp
mov ebp, dword [esp + 0x1368]
push esi
push edi
push 0x1ff
lea eax, [esp + 0x116d]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x1174], 0
call fcn.00456ba0
push 0x108c
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00456ba0
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x10a4]
push eax
mov dword [esp + 0xa0], 0x510
mov dword [esp + 0x14], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x10a4]
push edx
mov esi, eax
lea eax, [esp + 0x1170]
push 0x200
push eax
call fcn.0044fe3e
add esp, 0x10
test esi, esi
jne 0x40c1c5
push 0xb4
lea ecx, [esp + 0x10b8]
push esi
push ecx
mov dword [esp + 0xa8], 1
call fcn.00456ba0
add esp, 0xc
mov esi, str.IDS_HOST_FAILED
mov ecx, str.CheckRes
call fcn.00420e20
lea edx, [esp + 0x10b4]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x40c1a0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x10b4]
mov byte [esp + eax + 0xa0], cl
inc eax
test cl, cl
jne 0x40c1b0
jmp 0x40c20d
lea eax, [esp + 0x1168]
mov dword [esp + 0x9c], 0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1e0
lea edi, [esp + 0xa0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c1f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40c220
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.0041cab0
add esp, 4
test ebp, ebp
je 0x40c23b
lea eax, [esp + 0x1168]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c231
mov ecx, dword [esp + 0x1368]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044fdb2
add esp, 0x1360
ret 4
Function at 0x40cf80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b600
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
xor edi, edi
push edi
push eax
push closesocket
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40cfe9
push 0x4a512c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.00456eab
mov ecx, dword [ebp - 0x18]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x40d020
push 0x4a512c
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], esi
call fcn.00456eab
mov eax, 0x40d01d
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d02e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret 8

Function at 0x40d050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push closesocket
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40d0c0
push 0x4a512c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00456eab
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40d0fe
push 0x4a512c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.00456eab
mov eax, 0x40d0fb
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d10c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8