joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d74a
Capabilities:
Parse pe header

Disassembly:
push 0x3c
mov eax, 0x4adbe2
call fcn.00473cee
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x4b53bc]
mov esi, eax
test esi, esi
je 0x44d7a3
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x44d8c5
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [0x4b53b0]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x44d8c5
lea ecx, [ebp - 0x14]
call fcn.00404bf0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call dword [0x4b5168]
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x20], eax
call dword [0x4b53ac]
mov esi, eax
test esi, esi
je 0x44d8c5
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x44d88b
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [0x4b51ac]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
jne 0x44d884
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x44d88e
push esi
call dword [0x4b53a8]
push dword [ebp - 0x24]
push 0
push 0
push 4
push dword [ebp - 0x1c]
call dword [0x4b53ac]
mov ebx, eax
cmp esi, ebx
je 0x44d85d
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x44d884
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [0x4b51ac]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
je 0x44d88e
mov esi, 0xc1
jmp 0x44d8cd
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44d89b
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44d8a8
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44d8b8
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44d8c1
mov dword [eax], ebx
xor esi, esi
jmp 0x44d8cd
call dword [0x4b52c8]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov eax, esi
call fcn.00473cbc
ret

Function at 0x46e279
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4010c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov ebx, 0x104
call fcn.004098d0
add esp, 4
mov dword [ebp - 4], eax
push str.conf.inf_loc
push dword [ebp - 4]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40110d
push ebx
call fcn.00409473
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [0x4295eb]
test ebx, ebx
je 0x401124
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [0x4295eb], eax
mov eax, str.http:__update.414b.com_
push eax
mov ebx, dword [0x4295ef]
test ebx, ebx
je 0x401143
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [0x4295ef], eax
mov eax, str.orms
push eax
mov ebx, dword [0x4295f3]
test ebx, ebx
je 0x401162
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [0x4295f3], eax
mov eax, str.150913
push eax
mov ebx, dword [0x4295f7]
test ebx, ebx
je 0x401181
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [0x4295f7], eax
mov eax, str.110473
push eax
mov ebx, dword [0x4295fb]
test ebx, ebx
je 0x4011a0
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [0x4295fb], eax
mov dword [0x4295ff], 1
mov dword [ebp - 4], esp
push 0
push 0
push 0
push 0x4087bb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4011ed
push 6
call fcn.0040945b
add esp, 4
cmp dword [0x429603], 1
jne 0x4011ff
jmp 0x40121f
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x67c
call fcn.00409970
add esp, 0x10
jmp 0x4011ed
mov eax, 0
jmp 0x401229
mov esp, ebp
pop ebp
ret
Function at 0x40494d
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.0040b030
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4049ae
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push 1
push 0x4272f9
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4049ea
push 6
call fcn.0040945b
add esp, 4
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0040b060
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push SysReAllocString
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x404a47
push 6
call fcn.0040945b
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404a5a
push ebx
call fcn.00409473
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x350
call fcn.0040b080
add esp, 4
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push 0x3e8
mov eax, dword [ebp - 4]
test eax, eax
je 0x404a88
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x404aa8
push 6
call fcn.0040945b
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push OleUIBusyA
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404ac5
mov eax, 0x427396
push eax
push 2
mov ebx, 0x1a0
call fcn.0040b0f0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.004048f6
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404b01
push ebx
call fcn.00409473
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404b15
push ebx
call fcn.00409473
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x404a60
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x404b45
push 6
call fcn.0040945b
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x404b67
push 6
call fcn.0040945b
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404b81
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040946d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404b86
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404b97
push ebx
call fcn.00409473
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404ba7
push ebx
call fcn.00409473
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x409fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0040cde0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x40a0f0
test ecx, ecx
je 0x40a0f0
inc ecx
push ecx
call fcn.004196ca
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040e3f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40a019
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a0dd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.004196ca
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x40a0a1
cmp eax, 0xea
jne 0x40a0c9
push esi
call fcn.004196f3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004196ca
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x40a06c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x40a0af
cmp eax, 2
jne 0x40a0c9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0040cd50
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.004196f3
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004196f3
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x40a11e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40a12a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40a12a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0040cd50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40a140
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004196ca
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x40a1aa
push esi
lea edi, [eax + 0x400]
call fcn.004196f3
push edi
call fcn.004196ca
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x40a17a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a1c6
push ecx
push esi
call fcn.0040cd50
add esp, 8
mov ebx, eax
push esi
call fcn.004196f3
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40ae00
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 0x40ae69
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.004096f0
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 0x40ae80
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 0x40af12
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40af04
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 0x40aefc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40aec5
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 0x40b120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
call fcn.0040cde0
mov esi, dword [esp + 0x38]
mov ebp, eax
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, edx
mov dword [esp + 0x18], edx
je 0x40b207
cmp ecx, edx
je 0x40b207
inc ecx
push ebx
push ecx
call fcn.004196ca
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040e3f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40b19d
mov byte [esi], 0
inc esi
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b1f5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov edi, 4
push esi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b1ea
cmp dword [esp + 0x14], edi
jne 0x40b1ea
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004196f3
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
pop ebx
jne 0x40b213
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x40b217
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x40b310
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40b32e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40b323
pop esi
ret
Function at 0x40c770
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40c783
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.0040d6b0
add esp, 4
test eax, eax
jne 0x40c795
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x40c80c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40c83e
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 0x40c7f8
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40c7c8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x40c83e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40c83e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x40c827
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x41c09b
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 0x41c0dd
call fcn.0041f3f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c0dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c0d4
xor eax, eax
jmp 0x41c0e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c0eb
pop edi
pop esi
pop ebx
ret 4
Function at 0x41d076
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x420c98
call fcn.0040f140
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041f3f0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41d0b5
call fcn.0041f3f0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d0c3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41d0d1
or eax, 0xffffffff
jmp 0x41d1b9
mov ecx, esi
call fcn.0041cfec
mov dword [ebp - 0x14], eax
call fcn.0041a6df
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41d108
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d108
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a693
push dword [ebp - 0x14]
call fcn.0041a1c5
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041cd84
cmp eax, edi
je 0x41d17b
test byte [esi + 0x24], 0x10
je 0x41d149
push 4
mov ecx, esi
pop ebx
call fcn.00419bc5
test ah, 1
je 0x41d141
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c1ed
cmp dword [esi + 0x1c], edi
je 0x41d17b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00419bf9
jmp 0x41d17b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41d18f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d1a8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41d1a8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041d026
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41ef5d
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 0x41ef8b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41efa9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041eec3
jmp 0x41efa9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41efa9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041eec3
test edi, edi
mov eax, edi
jne 0x41ef93
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402e48
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00404ff6
xor edi, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
call fcn.004052a8
mov esi, eax
cmp esi, edi
jl 0x402fb7
push ebx
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x21c]
call fcn.0040554f
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x228]
push eax
call fcn.00405048
mov esi, eax
cmp esi, edi
jl 0x402fb6
cmp dword [ebp - 0x228], edi
je 0x403020
lea eax, [ebp - 0x224]
push eax
call fcn.004050af
mov esi, eax
cmp esi, edi
jl 0x402fb6
push 0x4013f0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004061de
mov esi, eax
cmp esi, edi
jl 0x402fab
cmp dword [ebp - 0x210], ebx
jne 0x402f31
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x218]
call fcn.004052a8
mov esi, eax
cmp esi, edi
jl 0x402fab
push 0x44
lea eax, [ebp - 0x27c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x27c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x27c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403008
call fcn.0040502e
mov esi, eax
push esi
push 0x401398
push ebx
lea eax, [ebp - 0x214]
push 0xa
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], 2
call fcn.004049a4
add esp, 0x14
push dword [ebp - 0x224]
call fcn.00405136
pop ebx
push esi
push 0x401348
push 3
lea eax, [ebp - 0x214]
push 0xa
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], 2
call fcn.004049a4
push dword [ebp - 0x21c]
call fcn.004054c1
push dword [ebp - 0x220]
call fcn.004054c1
mov ecx, dword [ebp - 4]
add esp, 0x1c
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403390
leave
ret 0x10
push dword [ebp - 0x238]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x234]
call ebx
jmp 0x402fab
mov esi, 0xd79
cmp dword [ebp - 0x210], ebx
jne 0x40305f
push 0x401244
push dword [ebp - 0x218]
call fcn.004053be
test eax, eax
jne 0x403046
add esi, 0xfffffffd
jmp 0x40305f
push 0x40124c
push dword [ebp - 0x218]
call fcn.004053be
test eax, eax
jne 0x40305f
mov esi, 0xd77
push ebx
push esi
push edi
call fcn.00402de9
call fcn.0040529b
mov esi, eax
jmp 0x402fb6