joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x42178d
xor al, al
pop edi
ret
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
mov dword [edx], 0xffffffff
jbe 0x4217c9
push ebx
push ebp
mov eax, dword [edx]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x469490]
shr eax, 8
xor eax, ebp
inc ecx
cmp ecx, esi
mov dword [edx], eax
jb 0x4217a4
pop ebp
pop ebx
mov eax, dword [edx]
not eax
pop esi
mov dword [edx], eax
mov al, 1
pop edi
ret

Function at 0x4217e0
Capabilities:
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1014
call fcn.00431870
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 0
push 0x8000027
push 3
push 0
push 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
mov dword [edi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1024], ebx
jne 0x421890
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d
push 4
call fcn.0041d220
add esp, 0xc
xor al, al
jmp 0x42198d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0x101c]
push ecx
push 0x1000
lea edx, [ebp - 0x1014]
push edx
push ebx
mov dword [ebp - 0x1020], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x101c]
mov esi, edx
test eax, eax
je 0x42197a
test edx, edx
je 0x42197a
mov al, byte [ebp + 0x10]
test al, al
mov byte [ebp - 0x1015], 0
je 0x421913
mov eax, dword [ebp - 0x1020]
sub eax, esi
cmp eax, 4
ja 0x421913
cmp edx, 4
jbe 0x421902
mov ecx, dword [ebp - 0x1020]
mov eax, esi
sub eax, ecx
add eax, 4
jmp 0x421904
mov eax, edx
sub edx, eax
mov dword [ebp - 0x101c], edx
mov byte [ebp - 0x1015], 1
xor ecx, ecx
cmp ecx, edx
jae 0x421947
mov eax, dword [edi]
movzx edi, byte [ebp + ecx - 0x1014]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
mov ebx, dword [edi*4 + 0x469490]
mov edi, dword [ebp + 0xc]
shr eax, 8
xor eax, ebx
mov ebx, dword [ebp - 0x1024]
mov dword [edi], eax
inc ecx
jmp 0x421915
mov al, byte [ebp - 0x1015]
test al, al
jne 0x42197a
push 0
lea ecx, [ebp - 0x101c]
push ecx
push 0x1000
lea edx, [ebp - 0x1014]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x101c]
add esi, edx
jmp 0x4218c3
test ebx, ebx
je 0x421985
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
not eax
mov dword [edi], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4219b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov cl, byte [esi]
test cl, cl
mov eax, 0x7fed7fed
mov edx, 0xeeeeeeee
je 0x4219f4
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
shl edi, 8
nop
add eax, edx
imul edx, edx, 0x21
movsx ecx, cl
lea ebx, [edi + ecx]
mov ebp, dword [ebx*4 + 0x46bf48]
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, ebp
test cl, cl
lea edx, [edx + eax + 3]
jne 0x4219d0
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x421c20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], ecx
mov cl, byte [esp + 0x18]
test cl, cl
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi], 0x457ac8
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
je 0x421cdb
push eax
call fcn.0044691a
add esp, 4
test eax, eax
mov dword [esi + 0x1c], eax
je 0x421cdb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x421c96
mov edx, dword [esi + 0xc]
push edx
push str.pos_d
push 6
jmp 0x421cca
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421cbc
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0x14]
je 0x421cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinErr_d
push 4
call fcn.0041d220
mov eax, dword [esi + 0x1c]
push eax
call fcn.00446915
add esp, 0x10
mov eax, esi
pop esi
ret 0x14
Function at 0x423e00
Capabilities:
Parse url

Disassembly:
sub esp, 0x830
mov eax, dword [0x46aa78]
mov ecx, dword [esp + 0x838]
test ecx, ecx
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x844]
push ebp
mov ebp, dword [esp + 0x838]
je 0x423f3a
test ebp, ebp
je 0x423f3a
push ebx
push esi
mov esi, eax
push edi
and eax, 0xc0000000
and esi, 0x3e000000
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
mov dword [esp + 0x20], 0x824
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x423ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x423ea6
mov edx, dword [esp + 0x10]
push edx
call fcn.0044691a
add esp, 4
mov edi, eax
push esi
lea eax, [esp + 0x14]
push eax
push edi
push ebp
mov ebx, 1
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x423ec5
push edi
call fcn.00446915
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x82c]
call fcn.00430cd9
add esp, 0x830
ret 0x14
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x848]
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test ebx, ebx
mov ebp, eax
je 0x423eea
push edi
call fcn.00446915
add esp, 4
test ebp, ebp
jne 0x423eff
mov edx, dword [esp + 0x84c]
mov dword [edx], 0xffffffff
mov eax, ebp
jmp 0x423ea8
mov ax, word [esi + 0x18]
mov ecx, dword [esp + 0x850]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x423f26
cmp eax, 7
jg 0x423f26
mov edx, dword [esp + 0x84c]
mov dword [edx], eax
mov eax, ebp
jmp 0x423ea8
mov eax, dword [esp + 0x84c]
mov dword [eax], 0xffffffff
mov eax, ebp
jmp 0x423ea8
mov ecx, dword [esp + 0x830]
xor eax, eax
pop ebp
call fcn.00430cd9
add esp, 0x830
ret 0x14
Function at 0x424b10
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x46aa78]
mov dword [esp + 0x108], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0x45675a
push str.SoftwareSohu_RDDownload
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x424c9f
cmp dword [esp], 1
jne 0x424c9f
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x424b66
mov eax, dword [str.SoDALib.dll]
mov ecx, dword [0x456c24]
mov edx, dword [0x456c28]
mov dword [edi], eax
mov al, byte [0x456c2c]
mov dword [edi + 4], ecx
lea ecx, [esp + 0xc]
mov dword [edi + 8], edx
push ecx
mov byte [edi + 0xc], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x46cf7c], eax
pop edi
je 0x424c9f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateSoDATask
push eax
call esi
mov edx, dword [0x46cf7c]
push str.SoDASetCallback
push edx
mov dword [0x46cf5c], eax
call esi
mov dword [0x46cf6c], eax
mov eax, dword [0x46cf7c]
push str.SoDASetDownloadMode
push eax
call esi
mov ecx, dword [0x46cf7c]
push str.SoDASetPingback
push ecx
mov dword [0x46cf58], eax
call esi
mov edx, dword [0x46cf7c]
push str.SoDADownloadUrl
push edx
mov dword [0x46cf64], eax
call esi
mov dword [0x46cf50], eax
mov eax, dword [0x46cf7c]
push str.SoDAResumeFile
push eax
call esi
mov ecx, dword [0x46cf7c]
push str.SoDASetFileName
push ecx
mov dword [0x46cf78], eax
call esi
mov edx, dword [0x46cf7c]
push str.SoDAPauseDownload
push edx
mov dword [0x46cf60], eax
call esi
mov dword [0x46cf54], eax
mov eax, dword [0x46cf7c]
push str.SoDACancelDownload
push eax
call esi
mov ecx, dword [0x46cf7c]
push str.SoDAGetStatusInfo
push ecx
mov dword [0x46cf68], eax
call esi
mov edx, dword [0x46cf7c]
push str.SoDAWaitDownload
push edx
mov dword [0x46cf74], eax
call esi
mov dword [0x46cf70], eax
mov eax, dword [0x46cf7c]
push str.DestroySoDATask
push eax
call esi
mov dword [0x46cf80], eax
mov al, 1
pop esi
mov ecx, dword [esp + 0x108]
call fcn.00430cd9
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor al, al
call fcn.00430cd9
add esp, 0x10c
ret
Function at 0x424f90
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 8
push esi
mov esi, ecx
push edi
mov dword [esi + 0xc], eax
mov edi, 1
ja case.default.0x424fa5
jmp dword [eax*4 + 0x425060]
mov dword [esi + 8], 0
jmp case.default.0x424fa5
mov dword [esi + 8], edi
jmp case.default.0x424fa5
mov dword [esi + 8], 2
jmp case.default.0x424fa5
mov dword [esi + 8], 3
mov eax, dword [esi + 8]
sub eax, 2
push ebx
push ebp
je 0x42500f
dec eax
jne 0x42503b
cmp dword [esi + 0xab8], edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jle 0x425004
lea ebx, [esi + 0xad8]
jmp 0x424ff0
push ebx
call ebp
mov eax, dword [esi + 0xab8]
inc edi
add ebx, 0x128
cmp edi, eax
jl 0x424ff0
lea eax, [esi + 0x834]
push eax
call ebp
jmp 0x42503b
mov eax, dword [esi + 0xab8]
xor edi, edi
test eax, eax
jle 0x42503b
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebx, [esi + 0x9b0]
push ebx
call ebp
mov eax, dword [esi + 0xab8]
inc edi
add ebx, 0x128
cmp edi, eax
jl 0x425027
mov eax, dword [esi + 0xae0]
test eax, eax
pop ebp
pop ebx
je 0x42505a
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x938]
push edx
push 0
push ecx
call eax
pop edi
pop esi
ret 4

Function at 0x425090
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov eax, ecx
imul eax, eax, 0x128
mov edx, dword [eax + esi + 0x9a4]
push edi
push edx
mov edx, dword [eax + esi + 0x9a0]
add eax, esi
push edx
mov edx, dword [eax + 0x99c]
mov eax, dword [eax + 0x998]
push edx
push eax
push ecx
push str.OnAntWorkFailed__d____d__d_
mov edi, 1
push edi
push 0
call fcn.00424d10
mov eax, dword [esi + 0xab8]
add esp, 0x20
cmp eax, edi
jne 0x42512a
lea ecx, [esi + 0x834]
push ecx
mov dword [esi + 0xc], 8
mov dword [esi + 8], 3
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0xae0]
test eax, eax
je 0x425118
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0x938]
push ecx
push 0
push edx
call eax
mov eax, dword [esi + 0xcec]
pop edi
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
xor ebx, ebx
test eax, eax
push ebp
jle 0x425151
mov edx, dword [esi + 0xab8]
lea ecx, [esi + 0x990]
mov edi, edi
mov ebp, dword [ecx]
cmp dword [ebp + 0xc], edi
je 0x425148
inc ebx
add ecx, 0x128
dec edx
jne 0x425140
cmp ebx, eax
jne 0x4251c1
cmp eax, edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0xc], 8
mov dword [esi + 8], 3
jle 0x425187
lea ebx, [esi + 0xad8]
push ebx
call ebp
mov eax, dword [esi + 0xab8]
inc edi
add ebx, 0x128
cmp edi, eax
jl 0x425173
lea ecx, [esi + 0x834]
push ecx
call ebp
mov eax, dword [esi + 0xae0]
test eax, eax
je 0x4251ad
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0x938]
push ecx
push 0
push edx
call eax
mov eax, dword [esi + 0xcec]
pop ebp
pop ebx
pop edi
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetEvent]
pop ebp
pop ebx
pop edi
pop esi
ret 4
Function at 0x425700
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x46aa78]
push ebp
push esi
push edi
mov dword [esp + 0xa44], eax
mov eax, dword [esp + 0xa4c]
push eax
mov esi, ecx
push 0x4538f4
lea edi, [esi + 0x10]
push 0x824
push edi
call fcn.00430c51
mov ecx, dword [esp + 0xa60]
push ecx
push 0x4538f4
lea ebp, [esi + 0x834]
push 0x104
push ebp
call fcn.00430c51
mov eax, dword [esp + 0xa74]
mov edx, dword [esp + 0xa78]
mov dword [esi + 0xae0], eax
mov eax, edi
mov dword [esi + 0x938], edx
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425772
sub eax, edx
mov dword [esp + 0xc], eax
je 0x4258a2
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425790
sub eax, edx
mov dword [esp + 0xc], eax
je 0x4258a2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00423f60
test eax, eax
je 0x425886
cmp dword [esp + 0xc], 0xffffffff
je 0x425886
mov eax, dword [esi + 0xae0]
test eax, eax
mov dword [esi + 0xc], 1
mov dword [esi + 8], 0
je 0x4257fd
mov edx, dword [esi + 0x938]
push 1
push 0
push 0
push edx
call eax
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esi + 0xbe8]
push ecx
push 0x104
push 0x458568
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esi + 0xcf4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x49
push 0
mov dword [esp + 0x20], 2
call edi
push 4
lea edx, [esp + 0x14]
push edx
push 0x4a
push 0
call edi
lea ecx, [esi + 0x93c]
call fcn.00426310
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa38]
call fcn.00430cd9
add esp, 0xa3c
ret 0x10
push edi
push 0x458554
lea eax, [esi + 0xae4]
push 0x104
push eax
call fcn.00430c51
add esp, 0x10
jmp 0x4258bb
push 0x4581b8
lea edx, [esi + 0xae4]
push 0x104
push edx
call fcn.00430c51
add esp, 0xc
mov eax, dword [esi + 0xae0]
test eax, eax
mov dword [esi + 0xc], 2
mov dword [esi + 8], 0
je 0x4258e2
mov ecx, dword [esi + 0x938]
push 2
push 0
push 0
push ecx
call eax
mov ecx, dword [esp + 0xa44]
pop edi
pop esi
xor eax, eax
pop ebp
call fcn.00430cd9
add esp, 0xa3c
ret 0x10
Function at 0x426310
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
jne 0x4263d7
xor edi, edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
mov dword [ebp - 0x14], edi
jne 0x426351
xor eax, eax
jmp 0x426359
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x4263b2
push 8
mov dword [ebp - 4], 0
call fcn.004468ea
add esp, 4
lea ecx, [eax + 4]
push ecx
push 4
push eax
push 0x426270
push 0
push 0
mov dword [eax], esi
call fcn.00431c39
add esp, 0x18
test eax, eax
je 0x4263a8
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], eax
mov dword [ebp - 4], 0xffffffff
inc edi
jmp 0x426343
mov dword [ebp - 4], 0xffffffff
inc edi
jmp 0x426343
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
cmp edi, ebx
je 0x4263d0
lea esp, [esp]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add edi, 4
cmp edi, ebx
jne 0x4263c0
mov dword [esi + 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4263f1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
sub eax, ecx
mov ecx, dword [ebp - 0xc]
pop esi
sar eax, 2
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4269a0
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
je 0x4269de
lea esp, [esp]
push 4
call fcn.004468ea
add esp, 4
test eax, eax
je 0x4269c6
mov dword [eax], 0x45861c
jmp 0x4269c8
xor eax, eax
push eax
mov ecx, edi
call fcn.004268d0
test eax, eax
je 0x4269de
mov eax, dword [edi + 0x10]
add esi, 4
cmp esi, eax
jne 0x4269b0
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
mov dword [edi + 4], 0
je 0x426a2a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426a00
mov eax, dword [esi]
push 0xa
push eax
call ebx
cmp eax, 0x102
jne 0x426a19
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push edx
call ebp
mov eax, dword [edi + 0x10]
add esi, 4
cmp esi, eax
jne 0x426a00
pop ebp
pop ebx
mov eax, dword [edi + 0xc]
xor esi, esi
cmp eax, esi
je 0x426a3c
push eax
call fcn.00446915
add esp, 4
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
pop edi
pop esi
ret
Function at 0x426a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x451796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esi + 8]
push edi
xor edi, edi
mov dword [esi], 0x458620
mov dword [esp + 8], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov eax, dword [esp + 0x28]
push edi
push eax
mov byte [esp + 0x28], 1
mov dword [esi + 4], edi
call fcn.00426840
mov eax, dword [esp + 0x2c]
push edi
push eax
push edi
push edi
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x426ae4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], str.Cant_Create_QueueAccessSemaphone
call fcn.004315f8
push 0x464228
lea edx, [esp + 0x10]
push edx
call fcn.004315ad
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x4c], eax
jne 0x426b25
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], str.Cant_Create_QueueNotFullEvent
call fcn.004315f8
push 0x464228
lea edx, [esp + 0x10]
push edx
call fcn.004315ad
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x428d0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x428d62
call fcn.0044d05b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x428d62
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x428d58
xor eax, eax
jmp 0x428e7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x428d92
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x428d92
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x428e78
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x428dbf
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004275f4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x428e78
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x428e08
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x428e08
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x428e02
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004275f4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x428e68
and dword [ebp + 0xc], 0
jmp 0x428e68
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x428e68
push 0xc
call fcn.004468ea
mov esi, eax
test esi, esi
pop ecx
je 0x428e4a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x428e4c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x428e63
push dword [ebp - 8]
call fcn.004420b0
jmp 0x428e68
call fcn.00442087
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x428dcd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x431c39
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x431c56
call fcn.00432853
mov dword [eax], 0x16
xor eax, eax
jmp 0x431cc0
push esi
push 0x8c
push 1
call fcn.004328d8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x431cab
push esi
call fcn.00435e7c
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x431c89
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x431ba4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x431cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004323b9
test ebx, ebx
pop ecx
je 0x431cbd
push ebx
call fcn.00432865
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43242a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00431870
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4324c5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46f8f4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4324c5
cmp eax, 1
je 0x4324e6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4324c5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x432492
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4324c1
xor eax, eax
inc eax
jmp 0x432505
cmp edi, eax
jae 0x4324c9
xor eax, eax
jmp 0x432505
cmp eax, esi
jae 0x4324d0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46f8f4]
jmp 0x4324e9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret