joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x101a7040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x4b
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x118]
mov dl, byte [ecx]
mov byte [ebp - 0x112], dl
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x112], 0
jne 0x10004d2b
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], eax
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x111], cl
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x111], 0
jne 0x10004d76
mov edi, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x10004e5c
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
push edx
call fcn.100079ea
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x130], 0
push 0
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x124], 0
je 0x10004e5c
mov edx, dword [ebp - 0x124]
push edx
call fcn.10003880
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123764
mov esp, ebp
pop ebp
ret

Function at 0x1000eabe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1000eb03
call fcn.1000c013
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000eb03
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000eb1f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001bab8
mov ebx, eax
test edi, edi
je 0x1000eb1d
test esi, esi
je 0x1000eb1d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e528
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1000c013
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001e55f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1001e580
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100211dd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.100131e4
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10021219
call fcn.100213fc
mov dword [esi + 0xc], 1
jmp 0x1002121e
call fcn.100213fc
cmp dword [esi], 0
je 0x10021267
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10021241
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000eb93
jmp 0x10021252
push 0xff
mov ecx, esi
call fcn.100097cb
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000a5d2
jmp 0x1002128b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1002128b
push dword [esi]
push dword [ebp - 4]
call fcn.10013635
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10021351
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100213fc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10021399
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000eb93
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000a5d2
jmp 0x100213a4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10013635
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100309cd
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100674d1
call fcn.1000c067
cmp dword [eax + 0x14], 0
jne 0x100309e8
mov ecx, esi
pop esi
jmp fcn.1002fdd3
pop esi
ret

Function at 0x10031703
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1011ed17
call fcn.1000c067
cmp dword [eax + 0x14], 0
jne 0x1003171e
mov ecx, esi
pop esi
jmp fcn.10030fec
pop esi
ret
Function at 0x40f862
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [0x425090]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x42ed08], ebx
jne 0x40f8c2
mov dword [0x42ed08], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f8a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f8aa
shr eax, 1
dec edi
test edi, edi
jg 0x40f89b
mov dword [ecx*4 + 0x42e908], eax
inc ecx
cmp ecx, 0xff
jle 0x40f896
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f8de
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42e908]
inc ecx
sub esi, 1
jne 0x40f8c6
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
mov dword [ebp - 8], ebx
xor edx, edx
div dword [ecx + 0xc]
mov esi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x40f920
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f92e
cmp dword [edi + 4], ebx
je 0x40f91c
push dword [ebp + 8]
push dword [edi + 4]
call dword [0x42508c]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f946
cmp dword [edi], ebx
jne 0x40f946
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 4], ebx
je 0x40f95d
push dword [ebp + 8]
push dword [edi + 4]
call dword [0x42508c]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f94f
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f8f4
jmp 0x40f920
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f923

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x30483555
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0xbe16e8b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x405b60
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e1e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405b9f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4457c8], eax
jmp 0x405d29
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bb9
test eax, eax
je 0x405cd7
test bl, 2
je 0x405cd7
mov esi, 0x438558
push edi
push esi
call fcn.0040639e
cmp dword [ebp + 8], 0
je 0x405bd8
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405bde
push edi
call fcn.00405d77
cmp byte [edi], 0
jne 0x405bec
cmp byte [0x438558], 0x5c
jne 0x405bf7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405ccd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d5b
cmp byte [eax], 0
je 0x405c3d
cmp byte [ebp - 0x1c], 0
je 0x405c3d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c53
mov al, byte [esi + 1]
test al, al
je 0x405cac
cmp al, 0x2e
jne 0x405c53
cmp byte [esi + 2], 0
je 0x405cac
push esi
push ebx
call fcn.0040639e
test byte [ebp - 0x14c], 0x10
je 0x405c78
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cac
push dword [ebp + 0xc]
push edi
call fcn.00405b60
jmp 0x405cac
push dword [ebp - 4]
push edi
call fcn.00405b18
test eax, eax
jne 0x405ca4
cmp dword [ebp - 4], eax
je 0x405c9c
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push 0
push edi
call fcn.00406177
jmp 0x405cac
inc dword [0x4457c8]
jmp 0x405cac
push edi
push 0xfffffffffffffff2
call fcn.004054e2
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c1b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd7
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d29
cmp dword [ebp - 0xc], esi
jne 0x405ceb
inc dword [0x4457c8]
jmp 0x405d29
push edi
call fcn.00406731
test eax, eax
je 0x405d29
push edi
call fcn.00405d30
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b18
test eax, eax
jne 0x405d21
cmp dword [ebp - 4], esi
je 0x405ce3
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push esi
push edi
call fcn.00406177
jmp 0x405d29
push edi
push 0xffffffffffffffe5
call fcn.004054e2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406758
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40677c
xor eax, eax
test eax, eax
je 0x40678e
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40678e
xor ecx, ecx
jmp 0x406791
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x43d2e4], 0
push esi
jne 0x4068b4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40688e
mov dword [ecx*4 + 0x43d2e0], eax
inc ecx
cmp ecx, 0x100
jl 0x406889
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068e5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43d2e0]
xor eax, esi
inc ecx
dec edx
jne 0x4068c7
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2bda24b7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0xff20ab
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401790
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401910
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401824
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401810
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401937
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401917
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4018a0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4018b0
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40182e
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x401eb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401eae
test eax, eax
jne 0x401eae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e90
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4021f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402215
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402220
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402215
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402268
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40225e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40226a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402250
xor eax, eax
pop ebx
pop esi
ret
Function at 0x5eca00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x175000]
push edi
or ebp, 0xffffffff
jmp 0x5eca22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5eca29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5eca18
mov eax, 1
add ebx, ebx
jne 0x5eca3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5eca4c
jne 0x5eca5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5eca5c
dec eax
add ebx, ebx
jne 0x5eca58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5eca30
xor ecx, ecx
sub eax, 3
jb 0x5eca74
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5ecae6
sar eax, 1
mov ebp, eax
jmp 0x5eca7f
add ebx, ebx
jne 0x5eca7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5eca8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5ecab0
inc ecx
add ebx, ebx
jne 0x5eca9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5eca91
jne 0x5ecaad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5eca91
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5ecad0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5ecac1
jmp 0x5eca1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5ecad0
add edi, ecx
jmp 0x5eca1e
pop esi
mov edi, esi
mov ecx, 0x8f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5ecaee
cmp byte [edi], 0xb
jne 0x5ecaee
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5ecaf3
lea edi, [esi + 0x1ea000]
mov eax, dword [edi]
or eax, eax
je 0x5ecb6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ee834]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ee884]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5ecb20
mov ecx, edi
jns 0x5ecb4f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ee888]
or eax, eax
je 0x5ecb65
mov dword [ebx], eax
add ebx, 4
jmp 0x5ecb3d
call dword [esi + 0x1ee88c]
popal
jmp 0x4077a8
Function at 0x100261e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10026303
cmp dword [ebp + 0xc], 0
je 0x10026303
push esi
push ebx
call fcn.10026472
mov esi, eax
pop ecx
test esi, esi
jne 0x100262fe
lea eax, [ebp - 4]
push eax
push ebx
call fcn.10025ae2
mov esi, eax
mov dword [ebp + 8], esi
pop ecx
pop ecx
test esi, esi
jne 0x100262f7
mov edx, dword [ebx + 0x34]
mov cl, 0x20
push edi
mov edi, dword [ebx + 0x30]
mov eax, edi
call fcn.10026ff0
push 0x14
mov esi, eax
lea eax, [ebp - 0x20]
push 0
push eax
call sym.GNSDK_FP.DLL_gcsl_memory_memset
mov dword [ebp - 0x18], edi
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100262b2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x100262a1
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100262a1
mov edi, dword [ebp - 0x1c]
jmp 0x100262b5
call esi
push eax
call fcn.10025cda
mov edi, dword [ebp - 8]
pop ecx
mov dword [ebp + 8], eax
jmp 0x100262b5
mov edi, dword [ebp - 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.10003119
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x20]
push esi
mov dword [ecx + 4], eax
mov dword [ebx + 0x20], ecx
call fcn.10003150
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test esi, esi
jne 0x100262f6
add dword [ebx + 0x30], edi
mov eax, dword [ebp + 0x14]
push esi
pop ecx
adc dword [ebx + 0x34], ecx
test eax, eax
je 0x100262ea
mov dword [eax], edi
push ecx
push edi
push ecx
push ebx
call fcn.100268ee
add esp, 0x10
pop edi
push ebx
call fcn.1002684f
pop ecx
mov eax, esi
pop esi
jmp 0x10026308
mov eax, 0x90030001
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219