joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad7c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x505a33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004f648b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004fbc04
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004fd208
test eax, eax
je 0x4ad8dc
mov ecx, dword [esp + 0x3c]
call fcn.004fbc31
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4ad8a0
push edi
mov ecx, esi
call fcn.004f91ed
mov ecx, esi
call fcn.004ada40
cmp dword [esp + 0x38], 1
jne 0x4ad8d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004f9357
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4b0300
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4b0333
push esi
call fcn.004b33f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b032c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4b03b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b03a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4b0357
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b039e
cmp eax, 2
je 0x4b03a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b034a
cmp eax, 3
je 0x4b037d
cmp eax, 1
jne 0x4b034a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4b034a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b034a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b03e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b03c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004b03e0
add esp, 4
pop esi
ret

Function at 0x4bbf10
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 0x4bbfb3
test eax, eax
jbe 0x4bbfb3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4bbfb3
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 0x4bbf5e
xor esi, esi
jmp 0x4bbf64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4bbf8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046e5e0
add esi, eax
push esi
mov ebx, esi
call fcn.0046e5e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4bbf70
pop ebp
test edi, edi
pop edi
jne 0x4bbfb3
test ebx, ebx
je 0x4bbfb3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004e4340
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4bc0f5
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 0x4bc20d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bc20d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004f68dd
mov esi, eax
test esi, esi
je 0x4bc20d
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 0x4bc20d
mov ecx, esi
call fcn.004bc060
cmp edi, eax
jge 0x4bc20d
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 0x4bc193
mov dword [esp + 0x34], 1
jmp 0x4bc1ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4bc20d
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.004bb640
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 0x4c1a28
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x506124
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004f648b
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.004bbe40
call fcn.004c0ec0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.004c0ec0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.004c0ec0
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.004c0ec0
mov dword [edi], 0x69b6c0
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.004c22e0
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4c1b60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x506194
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.004c2760
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x69b6d0
call fcn.004c10c0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x69b6d0
call fcn.004c10c0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x69b6d0
call fcn.004c10c0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x69b6d0
call fcn.004c10c0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004f6f44
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4c3d40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004ca150
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 0x4c3e39
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, esi
call fcn.004794a0
test eax, eax
jne 0x4c3e39
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 0x80000000
mov ecx, esi
call fcn.004794a0
test eax, eax
jne 0x4c3e39
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.004e4b10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c3e0a
lea eax, [esp + 0x10]
push 0x6b9374
push eax
call fcn.004e4b10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c3e0a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4c3e0d
mov byte [esi], 0
push 0x6b8b3c
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 0x4ca090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5068d8
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 0x4ca140
mov eax, dword [0x6bba94]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004f525a
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004f52a9
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004f5206
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4ca127
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4ca127
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.004f4e2a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4cd240
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x506d60
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 0x4cd3e7
mov ecx, dword [0x6bba94]
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 0x4cd33c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004cbf60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004f4f63
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004f4e2a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6b8b3c
call fcn.004f4e98
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004cc320
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004f4f63
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004f4e2a
lea ecx, [esp + 0xc]
call fcn.004f533e
mov ecx, dword [esp + 0xc]
push 0x6b957c
push ecx
call fcn.004e38a4
add esp, 8
test eax, eax
je 0x4cd364
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4cd29d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004f4e2a
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004f4e2a
jmp 0x4cd3eb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004ccfe0
test eax, eax
push 0
je 0x4cd3cf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004cb680
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4cd3b5
cmp eax, 0x64
jg 0x4cd3a3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4cd340
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4cd340
cmp eax, 0x64
jge 0x4cd33c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4cd340
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004cb680
mov esi, eax
jmp 0x4cd340
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4cd3f5
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 0x4d60a0
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 0x4d6106
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 0x4d6106
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4d60e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4d6490
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4d64c8
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 0x4d70f0
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 0x4d7139
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 0x4d75b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5073b0
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.004d7160
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d71e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d71e0
lea ecx, [esi + 0xc]
call fcn.004f4db5
lea ecx, [esi + 0x10]
call fcn.004f4db5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d8770
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d8770
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d8770
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004f4e2a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f4e2a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f7281
Capabilities:
Get graphical window text

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

Function at 0x4f8976
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 0x4f89b8
call fcn.004feb33
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f89b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f89af
xor eax, eax
jmp 0x4f89c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f89c6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ff063
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 0x4ff091
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ff0af
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fefc9
jmp 0x4ff0af
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ff0af
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fefc9
test edi, edi
mov eax, edi
jne 0x4ff099
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401339
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x40a0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00404012
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [0x406254]
push str.duowanyy4.0_
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call dword [0x406138]
push eax
push esi
call dword [0x406144]
add esp, 0xc
lea ecx, [ebp - 0x228]
call dword [0x406134]
cmp dword [esi + 0x18], 8
jb 0x4013bc
mov eax, dword [esi + 4]
jmp 0x4013bf
lea eax, [esi + 4]
push edi
push eax
push edi
call dword [0x406258]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404003
leave
ret

Function at 0x40216f
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x404d9b
call fcn.00404457
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x4c], eax
call dword [0x406024]
and dword [ebp - 4], 0
cmp dword [esi], 0
je 0x402282
lea eax, [ebp - 0x80]
push eax
call dword [0x40615c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [0x406158]
add esp, 0xc
test eax, eax
jne 0x40225b
push edi
call dword [0x406018]
push eax
movzx eax, word [ebp - 0x78]
push eax
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
push dword [ebp - 0x6c]
inc eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x5c]
add eax, 0x76c
push eax
lea eax, [ebp - 0x48]
push str.__04d__02d__02d__02d:_02d:_02d:_03d__PID__d___s_r_n
push eax
call fcn.004020eb
add esp, 0x2c
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x402205
lea eax, [ebp - 0x44]
push 0
push 0xfde9
push dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401f93
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 0x10
jae 0x402228
lea eax, [ebp - 0x28]
push dword [esi]
push dword [ebp - 0x18]
push 1
push eax
call dword [0x406170]
push dword [esi]
mov edi, eax
call dword [0x40616c]
add esp, 0x14
lea ecx, [ebp - 0x2c]
call dword [0x40608c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [0x406134]
jmp 0x40226f
push eax
push str.log_failed_for_get_loacl_time_error_:_d
push dword [esi]
call dword [0x40624c]
add esp, 0xc
or edi, 0xffffffff
push dword [ebp - 0x4c]
call dword [0x406028]
mov eax, edi
call fcn.004044da
ret 4
xor edi, edi
jmp 0x40226f
Function at 0x402286
Capabilities:
Create directory

Disassembly:
push 0x2c
mov eax, 0x404dd4
call fcn.00404457
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
call dword [0x406024]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x4022c5
mov bl, 1
push dword [ebp - 0x34]
call dword [0x406028]
mov al, bl
call fcn.004044da
ret 4
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00401ed3
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4022dd
lea eax, [ebp - 0x28]
push eax
call fcn.00401f7a
pop ecx
test al, al
jne 0x40230f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4022f4
lea eax, [ebp - 0x28]
push ebx
push eax
push ebx
call dword [0x406258]
test eax, eax
je 0x40230f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [0x406134]
jmp 0x4022b2
push 0x4069e8
push edi
mov edi, dword [0x406180]
call edi
pop ecx
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x402301
push 2
push ebx
push eax
call dword [0x40617c]
push dword [esi]
call dword [0x406178]
add esp, 0x10
cmp eax, 0x200000
jle 0x402373
push dword [esi]
call dword [0x406174]
mov dword [esp], 0x4069e0
push dword [ebp - 0x38]
call edi
pop ecx
pop ecx
cmp eax, ebx
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
setne byte [ebp - 0x2d]
mov byte [ebp - 4], bl
call dword [0x406134]
mov bl, byte [ebp - 0x2d]
jmp 0x4022b2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [0x406134]
jmp 0x4022b0
Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d10
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402eb7
inc ebx
jmp 0x402ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
lea eax, [ebp - 8]
call fcn.004044c4
ret

Function at 0x402edc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044c4
test esi, esi
jne 0x402f13
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045b4
jmp 0x402f34
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d10
mov dword [esp], eax
test esi, esi
je 0x402f34
cmp dword [ebx], 0
je 0x402f34
dec esi
jmp 0x402f1b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40363c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40361c
xor eax, eax
push ebp
push 0x403615
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403658
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40361c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f04c], 0
je 0x4043a1
cmp word [0x45f220], 0xd7b2
jne 0x404369
cmp dword [0x45f228], 0
jbe 0x404369
mov eax, 0x45f21c
call dword [0x45f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x4043bd
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret