joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9554
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
lea eax, [ebp - 0x278]
mov edx, dword [0x40dde4]
call fcn.00407a54
xor eax, eax
push ebp
push 0x4e96f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x279], 0
mov dl, 1
mov eax, dword [0x4cfb28]
call fcn.004d0164
mov dword [ebp - 0x280], eax
xor edx, edx
push ebp
push 0x4e96c4
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.00414a7c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x280]
call fcn.004d059c
xor edx, edx
mov eax, dword [ebp - 0x280]
call fcn.004d029c
test al, al
jne 0x4e9600
test bl, bl
je 0x4e95ea
mov eax, dword [ebp - 0x280]
cmp dword [eax + 0x18], 2
je 0x4e95ee
xor eax, eax
jmp 0x4e95f0
mov al, 1
mov byte [ebp - 0x279], al
call fcn.00405a34
jmp 0x4e96cb
cmp byte [edi + 0x5e], 0
jne 0x4e9616
mov eax, dword [ebp - 0x280]
cmp dword [eax + 0x18], 5
je 0x4e96ab
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
mov eax, dword [ebp - 4]
call fcn.00413fe8
test eax, eax
jne 0x4e967c
test byte [ebp - 0x268], 1
sete byte [ebp - 0x279]
lea eax, [ebp - 0x278]
call fcn.0041405c
cmp byte [ebp - 0x279], 0
je 0x4e9675
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00413b70
cmp eax, 0xffffffff
setg byte [ebp - 0x279]
cmp byte [ebp - 0x279], 0
je 0x4e9675
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00405a34
jmp 0x4e96cb
xor ecx, ecx
mov edx, 0x10
mov eax, dword [ebp - 4]
call fcn.00413bc8
cmp eax, 0xffffffff
jle 0x4e96ab
mov byte [ebp - 0x279], 1
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e96cb
mov eax, dword [ebp - 0x280]
call fcn.00404e68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e96f9
lea eax, [ebp - 0x278]
mov edx, dword [0x40dde4]
call fcn.00407b2c
lea eax, [ebp - 4]
call fcn.00406d50
ret
Function at 0x4f9354
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.004070c4
mov eax, esi
call fcn.00407754
mov edx, eax
mov ecx, ebx
add ecx, ecx
mov eax, esp
call fcn.00404434
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x401083
lea eax, [ebp - 0x104]
push eax
call 0x4011d0
push 0x401016
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x40114c
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401035
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x40118c
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x40104f
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x40118c
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401131
mov word [ebx], 0x5c
push 0x401020
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x40118c
mov dword [ebp - 0x108], eax
push 0x40102a
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x401181
push 0x3e8
call eax
test eax, eax
je 0x401181
call 0x401171
add dword [esp], 0x1e8f
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x40107e
push 0x401054
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x403b67
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x439ca0], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403b9f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x42a738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42a73c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403b60
mov eax, dword [0x42a740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42a744]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x439ca0], 0xc
mov dword [ebp - 4], eax
jne 0x403c43
lea eax, [ebp - 0x438]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc38]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x439ca0]
cmp eax, 0xfa9
jne 0x403c5f
mov dword [0x43923c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c6c
mov dword [0x438be8], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x439238], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x439ca0], 0x213
mov dword [ebp - 0x14], edx
jne 0x403caa
push 0x403604
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x439ca0], 0xc
jne 0x403cd7
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00403b5a
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403bdb
cmp dword [0x439ca0], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403d32
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x404095
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x439ca0], 0x400
push edi
jne 0x4040f5
push esi
call fcn.004044b9
pop ecx
push esi
call fcn.004046a2
pop ecx
push esi
push esi
call fcn.004049c2
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ad7
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ab4
fstp st(0)
push esi
call fcn.00404c20
pop ecx
push esi
push esi
call fcn.00404547
pop ecx
pop ecx
mov eax, dword [0x42fbe4]
mov dword [0x439ca0], eax
mov eax, dword [0x42fbbc]
mov dword [0x439ca4], eax
call fcn.00403dd4
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x404164
cmp dword [esp + 0x18], 0x785074d5
jne 0x404172
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404117
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40382c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x4041a3
cmp dword [esp + 0x18], 0x785074d5
jne 0x4041ac
inc edi
cmp edi, 0x11915
jl 0x404174
mov eax, dword [0x438bf0]
mov dword [0x439234], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429118]
jne 0x40559a
repz ret
jmp fcn.0040a182
Function at 0x409ea5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040825e
and dword [ebp - 4], 0
cmp dword [0x4304a4], 0
mov ebx, eax
jne 0x409f56
push 0x4023e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a007
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023dc
push edi
call esi
test eax, eax
je 0x40a007
push eax
call fcn.004081ec
mov dword [esp], 0x4023cc
push edi
mov dword [0x4304a4], eax
call esi
push eax
call fcn.004081ec
mov dword [esp], 0x4023b8
push edi
mov dword [0x4304a8], eax
call esi
push eax
call fcn.004081ec
mov dword [esp], 0x40239c
push edi
mov dword [0x4304ac], eax
call esi
push eax
call fcn.004081ec
pop ecx
mov dword [0x4304b4], eax
test eax, eax
je 0x409f56
push 0x402384
push edi
call esi
push eax
call fcn.004081ec
pop ecx
mov dword [0x4304b0], eax
mov eax, dword [0x4304b0]
cmp eax, ebx
je 0x409fae
cmp dword [0x4304b4], ebx
je 0x409fae
push eax
call fcn.00408267
push dword [0x4304b4]
mov esi, eax
call fcn.00408267
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409fae
test edi, edi
je 0x409fae
call esi
test eax, eax
je 0x409fa5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fa5
test byte [ebp - 0xc], 1
jne 0x409fae
or dword [ebp + 0x10], 0x200000
jmp 0x409fe7
mov eax, dword [0x4304a8]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408267
pop ecx
test eax, eax
je 0x409fe7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409fe7
mov eax, dword [0x4304ac]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408267
pop ecx
test eax, eax
je 0x409fe7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4304a4]
call fcn.00408267
pop ecx
test eax, eax
je 0x40a007
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a009
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x118], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [esp], 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x134]
push ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401430
test eax, eax
jne 0x4016c2
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40212e
sub eax, 0x4016cc
mov dword [esp], 0x4016cc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c2
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013ac
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004015ad
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e31
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401229
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40123d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40125e
cmp esi, eax
jae 0x401237
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401250
cmp esi, eax
jae 0x401237
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4021d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x402200
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [esi*4 + 0x44e0e8]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x4021e1
pop edi
pop esi
not eax
ret

Function at 0x402b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402a70
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402760
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402c02
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402db0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43c0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x48ecf0]
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
mov esi, ecx
call fcn.0042e5d4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x588]
push eax
xor ebp, ebp
push ebp
push str.SegNumber
push str.Main
mov dword [esp + 0x130], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
imul eax, eax, 0x108
push eax
mov dword [esp + 0x14], edi
call fcn.004328da
add esp, 4
cmp edi, ebp
mov dword [esi + 0x58c], eax
jbe 0x402f21
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
lea esp, [esp]
push ebp
lea ecx, [esp + 0x14]
push str.Seg_d
push ecx
call fcn.00401930
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x58c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push 0xff
add edx, edi
push edx
push 0x43ef6a
push eax
push str.Main
call ebx
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x58c]
push eax
push 0xff
lea ecx, [esp + 0x20]
push ecx
push 0x43ef6a
push str.StartAddr
add edx, edi
push edx
call ebx
push 0x10
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0x25], 0x30
call fcn.0041db58
mov ecx, dword [esi + 0x58c]
add esp, 0xc
mov dword [ecx + edi + 0x100], eax
mov eax, dword [esi + 0x588]
push eax
mov eax, dword [esi + 0x58c]
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x43ef6a
push str.SegSize
add eax, edi
push eax
call ebx
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
mov byte [esp + 0x25], 0x30
call fcn.0041db58
mov edx, dword [esi + 0x58c]
add esp, 0xc
mov dword [edx + edi + 0x104], eax
mov eax, dword [esp + 0x14]
inc ebp
add edi, 0x108
cmp ebp, eax
jb 0x402e40
mov edi, eax
pop ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop ebp
call fcn.0041ce8e
add esp, 0x118
ret
Function at 0x406da3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x406dd8
mov edx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x406de1
mov eax, dword [esp + 8]
test eax, eax
jbe 0x406de1
mov eax, dword [esi + 8]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406dd8
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 4], 0
jbe 0x406dfb
mov eax, ecx
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea edi, [esi + 0x54]
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e62
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x406e57
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x406e62
call ebx
cmp eax, 0x3e4
je 0x406e62
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 0x14
ret 0xc

Function at 0x406e70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x406edb
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x406ea5
mov eax, dword [esp + 8]
test eax, eax
jbe 0x406ea5
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x68]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x406ee4
xor eax, eax
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x406ef0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x406f61
mov byte [esi + 0x90], 0
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406f3d
mov ecx, dword [esi + 0x7c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x406f61
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x7c], 0
mov al, 1
pop esi
ret 4
xor al, al
pop esi
ret 4