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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531cd0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0052a6e9
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4dc133
xor al, al
jmp 0x4dc25f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4dc155
xor al, al
jmp 0x4dc25f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4dc168
xor al, al
jmp 0x4dc25f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4dc17c
xor al, al
jmp 0x4dc25f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0051e506
test eax, eax
jne 0x4dc1b0
xor al, al
jmp 0x4dc25f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6d2c0c
mov dword [esp + 0x20], ebp
call fcn.0052a6e9
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005270de
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00527135
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4dc244
mov ax, word [ebx]
test ax, ax
je 0x4dc236
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004dc280
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4dc21a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00527135
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4dc780
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0052888b
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4dc7c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0050d668
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6f5ff0
push ecx
call fcn.0050f5e2
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4e2220
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 0x4e226c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4e226c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4e2256
push eax
call ebp
test ax, ax
jl 0x4e2264
inc esi
add edi, 4
cmp esi, 6
jb 0x4e2248
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004e1f20
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e4ad0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4e4b30
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4e4b30
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4e4b30
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4e4b30
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 0x4e4b40
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 0x4e6180
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4e61e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4e61e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e61c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4e6960
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e6998
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4e75c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4e7609
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4e7a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x532320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004e7630
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004e76b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004e76b0
lea ecx, [esi + 0xc]
call fcn.0052021e
lea ecx, [esi + 0x10]
call fcn.0052021e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004e8c40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004e8c40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004e8c40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00520293
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00520293
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ebc10
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6fbe74]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4ebc23
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4ebc64
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6fbf1c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4ebc96
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ebc9a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4ebc8b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4ebcb8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ebcbc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4ebcad
xor ecx, ecx
mov eax, 0x6fbe84
xor ebx, ebx
mov bl, byte [ecx + 0x6fbf2c]
cmp byte [esp + ebx + 0x14], 0
je 0x4ebce7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6fbf44]
cmp byte [esp + ebx + 0x14], 0
je 0x4ebcfe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4ebcce
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4ebc57
lea edx, [esp + 0x84]
push edx
call fcn.004ebd40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f7d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004fe190
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4f7e79
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.004638b0
test eax, eax
jne 0x4f7e79
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.004638b0
test eax, eax
jne 0x4f7e79
lea edx, [esp + 0x10]
push 0x6ff084
push edx
call fcn.0050e900
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e4a
lea eax, [esp + 0x10]
push 0x6ff080
push eax
call fcn.0050e900
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e4a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4f7e4d
mov byte [esi], 0
push 0x6fe848
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4fe0d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x533118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4fe180
mov eax, dword [0x6ffcc8]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00520677
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.005206c6
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00520623
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4fe167
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4fe167
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00520293
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x501280
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5335a0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x501427
mov ecx, dword [0x6ffcc8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x50137c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004fffa0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00520380
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00520293
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6fe848
call fcn.00520301
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00500360
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00520380
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00520293
lea ecx, [esp + 0xc]
call fcn.0052075b
mov ecx, dword [esp + 0xc]
push 0x6ff284
push ecx
call fcn.0050d7b4
add esp, 8
test eax, eax
je 0x5013a4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x5012dd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00520293
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00520293
jmp 0x50142b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00501020
test eax, eax
push 0
je 0x50140f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004ff6c0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5013f5
cmp eax, 0x64
jg 0x5013e3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x501380
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x501380
cmp eax, 0x64
jge 0x50137c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x501380
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004ff6c0
mov esi, eax
jmp 0x501380
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x501435
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x5226a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5226d9
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.005206ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005206c6
jmp 0x5226e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x523ea1
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 0x523ee3
call fcn.0052a6e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x523ee3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x523eda
xor eax, eax
jmp 0x523eeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00523ef1
pop edi
pop esi
pop ebx
ret 4

Function at 0x52ac19
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 0x52ac47
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52ac65
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052ab7f
jmp 0x52ac65
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52ac65
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052ab7f
test edi, edi
mov eax, edi
jne 0x52ac4f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401018
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x104
mov eax, dword [0x41d380]
push esi
push edi
mov esi, ecx
mov dword [ebp + 0x80], eax
push 0x3f
xor eax, eax
cmp dword [esi], 0
mov byte [ebp - 0x80], 0
pop ecx
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4010c5
push dword [ebp + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
test eax, eax
mov dword [esi], eax
jne 0x4010b2
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x401095
lea eax, [ebp - 0x80]
push eax
call fcn.0040bf20
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x401095
lea eax, [ebp - 0x80]
push 0x41835c
push eax
call fcn.0040be30
pop ecx
pop ecx
push dword [ebp + 0x8c]
lea eax, [ebp - 0x80]
push eax
call fcn.0040be30
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
mov dword [esi], eax
je 0x4010c5
push str.MSUK_GetCommonFunctionList
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi + 4]
push ecx
call eax
mov ecx, dword [ebp + 0x80]
xor eax, eax
cmp dword [esi + 4], eax
pop edi
setne al
pop esi
call fcn.0040bfdc
add ebp, 0x84
leave
ret 4
Function at 0x4010e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x41d380]
push ebx
push edi
push str.Crypt32.dll
mov dword [ebp + 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x54], ebx
jne 0x401120
xor eax, eax
jmp 0x4012b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4183dc
push ebx
call esi
push 0x4183c4
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x4183a8
push dword [ebp - 0x54]
mov ebx, eax
call esi
push 0x418388
push dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
call esi
push str.CertAddCertificateContextToStore
push dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call esi
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x60], eax
je 0x4012ab
cmp ebx, edi
je 0x4012ab
cmp dword [ebp - 0x50], edi
je 0x4012ab
cmp dword [ebp - 0x4c], edi
je 0x4012ab
cmp eax, edi
je 0x4012ab
push 0x418360
push edi
call ebx
cmp eax, edi
mov dword [ebp - 0x5c], eax
je 0x4012ab
push dword [ebp + 0x3c8]
push dword [ebp + 0x3c4]
push 0x10001
call dword [ebp - 0x4c]
cmp eax, edi
mov dword [ebp - 0x64], eax
jne 0x4011c5
push edi
call dword [ebp - 0x50]
jmp 0x4012ab
push dword [ebp + 0x3d0]
call fcn.0040bf20
mov esi, eax
mov dword [esp], 0x200
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040bff0
add esp, 0xc
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp + 0x3d0]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
push dword [ebp + 0x3d4]
call fcn.0040bf20
mov dword [ebp - 0x4c], eax
mov dword [esp], 0x200
lea eax, [ebp + 0x1b8]
push edi
push eax
call fcn.0040bff0
add esp, 0xc
push ebx
lea eax, [ebp + 0x1b8]
push eax
push dword [ebp - 0x4c]
xor ebx, ebx
push dword [ebp + 0x3d4]
inc ebx
push ebx
push edi
call esi
push 0x1c
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0040bff0
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1b8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x3cc]
add esp, 0xc
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
push edi
push 2
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x401294
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
jmp 0x4012ab
push edi
push 3
push esi
push dword [ebp - 0x5c]
call dword [ebp - 0x60]
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
mov edi, ebx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop esi
mov ecx, dword [ebp + 0x3b8]
pop edi
pop ebx
call fcn.0040bfdc
add ebp, 0x3bc
leave
ret
Function at 0x4012cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], ebx
jne 0x4012f1
xor eax, eax
jmp 0x4013b2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4183dc
push ebx
call esi
push 0x4183c4
push ebx
mov dword [ebp - 0x18], eax
call esi
push 0x4183a8
push dword [ebp - 4]
mov ebx, eax
call esi
push 0x418418
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
push 0x418388
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push 0x4183f8
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
je 0x4013a6
cmp ebx, edi
je 0x4013a6
cmp dword [ebp - 0x10], edi
je 0x4013a6
cmp dword [ebp - 0xc], edi
je 0x4013a6
cmp dword [ebp - 8], edi
je 0x4013a6
cmp eax, edi
je 0x4013a6
push 0x418360
push edi
call ebx
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4013a6
push dword [ebp + 0xc]
mov esi, 0x10001
push dword [ebp + 8]
push esi
call dword [ebp - 8]
mov ebx, eax
cmp ebx, edi
je 0x4013a6
push edi
push ebx
push 0xd0000
push edi
push esi
push dword [ebp - 0x14]
call dword [ebp - 0xc]
cmp eax, edi
je 0x4013a6
push eax
call dword [ebp - 0x1c]
push ebx
call dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call dword [ebp - 0x18]
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40178a
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x5cc]
sub esp, 0x64c
mov eax, dword [0x41d380]
push ebx
push esi
push edi
mov dword [ebp + 0x5c8], eax
push 0xf
xor eax, eax
pop ecx
push dword [0x429e84]
mov esi, dword [0x429e88]
push dword [0x429e80]
mov byte [ebp + 0x588], 0
lea edi, [ebp + 0x589]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + 0x288], 0
mov ecx, 0xbf
lea edi, [ebp + 0x289]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x588]
push 0x42a3bc
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040c050
add esp, 0x10
lea eax, [ebp + 0x588]
push eax
push 0xffff
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x300
lea eax, [ebp + 0x288]
push 0
push eax
call fcn.0040bff0
lea eax, [ebp + 0x288]
push 0x42b3dc
push eax
call fcn.0040be30
mov esi, dword [ebp + 0x5dc]
imul esi, esi, 0x3ec
add esi, 0x41e240
add esp, 0x14
cmp dword [esi + 0x3c0], 2
lea eax, [esi + 0x3c4]
mov dword [ebp - 0x80], eax
jne 0x401864
push 0x42a7fc
jmp 0x401869
push 0x42a7bc
push eax
call fcn.0040be20
pop ecx
pop ecx
lea edi, [esi + 0x2c0]
push edi
lea ebx, [esi + 0x340]
push ebx
lea eax, [esi + 0x100]
push eax
push esi
lea ecx, [esi + 0x220]
push ecx
lea edx, [esi + 0x200]
push edx
push 0
push dword [esi + 0x3e8]
push dword [esi + 0x3e4]
call fcn.004013b6
lea eax, [esi + 0x220]
push eax
lea eax, [esi + 0x200]
push eax
lea eax, [esi + 0x100]
push eax
push esi
push dword [ebp - 0x80]
lea eax, [ebp + 0x288]
push edi
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040c050
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x48
lea eax, [ebp - 0x78]
push eax
push 0x3f4
push dword [ebp - 0x7c]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push 0x3f0
push dword [ebp - 0x7c]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x481
push dword [ebp - 0x7c]
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call ebx
cmp dword [ebp + 0x5d8], 1
ja 0x401953
push 0
push 0x481
push dword [ebp - 0x7c]
call esi
push eax
call edi
push 0
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call edi
jmp 0x4019a7
push 5
push 0x481
push dword [ebp - 0x7c]
call esi
push eax
call edi
push 5
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call edi
cmp dword [ebp + 0x5dc], 0
jbe 0x401989
push 1
push 0x481
push dword [ebp - 0x7c]
call esi
push eax
call ebx
mov eax, dword [ebp + 0x5d8]
dec eax
cmp dword [ebp + 0x5dc], eax
jae 0x4019a7
push 1
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call ebx
mov ecx, dword [ebp + 0x5c8]
pop edi
pop esi
pop ebx
call fcn.0040bfdc
add ebp, 0x5cc
leave
ret