joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415108
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x415145
push 6
call fcn.00434227
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x415150
mov esp, ebp
pop ebp
ret 4

Function at 0x415156
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x415191
push 6
call fcn.00434227
add esp, 4
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.004355a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4151c4
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4151e8
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x415208
push 6
call fcn.00434227
add esp, 4
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x415225
mov eax, 0x4683a1
push eax
push 2
mov ebx, 0x1a0
call fcn.004357e0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41524f
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41526d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x415272
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x415283
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4189bb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x28
call fcn.00434233
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
nop
nop
cmp dword [ebp - 8], esp
je 0x418a03
push 6
call fcn.00434227
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x418a16
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x419770
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4197bc
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4198a2
push 0x80000301
push 0
push 0x10000
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 3
mov ebx, 0xc8
call fcn.004355d0
add esp, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41982c
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x419880
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41985b
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x419880
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4198a2
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4198aa
mov esp, ebp
pop ebp
ret 4
Function at 0x43033b
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x430387
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x430586
mov dword [ebp - 0x10], esp
push 0xf01ff
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4303c0
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x430564
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0xffffffff
push dword [ebp + 0xc]
push 0xffffffff
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4304d9
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4304ec
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4304fc
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x43050c
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x43051c
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x43052c
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x43053c
push ebx
call fcn.0043423f
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x430564
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x430586
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x43058e
mov esp, ebp
pop ebp
ret 8
Function at 0x434e50
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x434ea0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x434ee1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x434ee1.2
jmp dword [eax*4 + 0x434f6c]
mov word [esp + 0x48], di
jmp 0x434f1a
mov word [esp + 0x48], 2
jmp 0x434f1a
mov word [esp + 0x48], 3
jmp 0x434f1a
mov word [esp + 0x48], 4
jmp 0x434f1a
mov word [esp + 0x48], 7
jmp 0x434f1a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x434f64
cmp dword [esp + 0x70], edi
je 0x434f50
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x435d80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x435de9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00434960
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x435df0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x435e82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x435e74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x435e6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x435e35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4360f0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4360fd
xor eax, eax
pop esi
ret
push esi
call fcn.0043a1c0
add esp, 4
test eax, eax
jne 0x43610c
pop esi
ret
cmp eax, 1
jne 0x43611a
cmp byte [esi], 0x5c
jne 0x43611a
xor eax, eax
pop esi
ret
push esi
call fcn.00435ea0
add esp, 4
test eax, eax
je 0x43612e
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret
Function at 0x436b80
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x436b96
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x436ba0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x436bf0
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00436b80
add esp, 4
cmp eax, 0xffffffff
je 0x436beb
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
push esi
call fcn.0043a1c0
push eax
push esi
call fcn.0043ac50
add esp, 0xc
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x437580
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret
Function at 0x43a2a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x43a2c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x43a31b
inc edi
cmp edi, esi
jl 0x43a2b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x43a350
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x43a30a
cmp byte [eax], bl
je 0x43a325
cmp byte [eax + 1], bl
je 0x43a32e
cmp byte [eax + 2], bl
je 0x43a338
cmp byte [eax + 3], bl
je 0x43a344
add eax, 4
cmp eax, edi
jb 0x43a2e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x43a950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x43a9a6
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43a98d
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43c040
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 0x43c0a6
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 0x43c0a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x43c087
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x43c430
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43c468
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 0xa2d3ec
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 0x43d140
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.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x43d189
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 0x43d600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f940
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.0043d1b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0043d230
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0043d230
lea ecx, [esi + 0xc]
call fcn.0045784e
lea ecx, [esi + 0x10]
call fcn.0045784e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0043e7c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0043e7c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0043e7c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004578c3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004578c3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45ab77
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 0x45abb9
call fcn.0045dcf1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x45abb9
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x45abb0
xor eax, eax
jmp 0x45abc1
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045abc7
pop edi
pop esi
pop ebx
ret 4

Function at 0x45e1ea
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 0x45e218
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x45e236
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045e150
jmp 0x45e236
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45e236
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045e150
test edi, edi
mov eax, edi
jne 0x45e220
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x64fab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650888
push 0x64faa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cld
add bh, bh
adc eax, sym.imp.MSVCRT.dll___set_app_type
pop ecx
or dword [0xa55204], 0xffffffff
or dword [0xa55208], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0xa55200]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0xa551fc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0xa5520c], eax
call fcn.0064fc2f
cmp dword [0x6544a0], ebx
jne 0x64fb33
push 0x64fc2c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0064fc1a
push 0x65400c
push 0x654008
call sub.MSVCRT.dll__initterm
mov eax, dword [0xa551f8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0xa551f4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x654004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x64fbc6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64fb9a
cmp al, 0x22
jne 0x64fb8c
cmp byte [esi], 0x22
jne 0x64fba3
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64fbad
cmp al, 0x20
jbe 0x64fb9f
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x64fbd1
movzx eax, word [ebp - 0x2c]
jmp 0x64fbd4
cmp byte [esi], 0x20
jbe 0x64fba3
inc esi
mov dword [ebp - 0x74], esi
jmp 0x64fbc6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401851
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0xff
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
mov ecx, dword [ebp + 8]
push ecx
call fcn.004022c0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 1
jmp 0x401896
mov edx, dword [ebp - 0x114]
add edx, 2
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 8]
jg 0x401981
push 1
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401e12
add esp, 0xc
push eax
call fcn.00401da4
add esp, 4
mov dword [ebp - 4], eax
push 1
mov eax, dword [ebp - 0x114]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e12
add esp, 0xc
push eax
call fcn.00401da4
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx - 0x96]
push ecx
call fcn.00401d48
add esp, 4
push eax
push 0x40bfb0
call fcn.00402660
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x64
jle 0x40197c
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x64
cdq
idiv dword [ebp - 8]
mov dword [ebp - 0x218], eax
fild dword [ebp - 0x218]
sub esp, 8
fstp qword [esp]
call fcn.00401dcb
add esp, 8
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00402650
add esp, 8
push str._a0b1c2d3e4f5g6h7i8j9
lea ecx, [ebp - 0x214]
push ecx
call fcn.00402660
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x401887
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, 0x40bfb0
mov esp, ebp
pop ebp
ret

Function at 0x403c7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004056c8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403cbf
test byte [esp + 8], 2
je 0x403cbf
mov dword [0x54f4ac], 0xd
mov dword [0x54f4b0], 5
jmp 0x403c9a
xor eax, eax
ret
Function at 0x405575
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b7a0
cmp edx, dword [eax]
je 0x405597
add eax, 8
inc ecx
cmp eax, 0x40b830
jl 0x405588
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b7a0]
jne 0x4056c5
mov eax, dword [0x54f508]
cmp eax, 1
je 0x40569f
test eax, eax
jne 0x4055c8
cmp dword [0x40b228], 1
je 0x40569f
cmp edx, 0xfc
je 0x4056c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4055ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402650
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004022c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405642
lea eax, [ebp - 0x1a4]
push eax
call fcn.004022c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a4d4
push edi
call fcn.00402e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402650
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402660
lea eax, [ebp - 0xa0]
push 0x40a4b4
push eax
call fcn.00402660
push dword [esi + 0x40b7a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402660
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040823a
add esp, 0x2c
pop edi
jmp 0x4056c5
lea eax, [ebp + 8]
lea esi, [esi + 0x40b7a4]
push 0
push eax
push dword [esi]
call fcn.004022c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret