joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c530
Capabilities:
Check if file exists

Disassembly:
push eax
push ebx
push ecx
push edx
push esi
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040585e
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
test eax, eax
je 0x41c55b
cmp eax, 0x20
jbe 0x41c535
mov esi, eax
mov eax, 0x463d64
call fcn.0041b00e
call fcn.0041afb5
cmp esi, 0x40
jne 0x41c5ab
mov ecx, ebx
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040585e
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
cmp eax, 0x20
jbe 0x41c5cc
cmp eax, 0xffff
ja 0x41ca4b
mov word [ecx*2 + 0x463d64], ax
inc ecx
jmp 0x41c573
test esi, esi
je 0x41c5cc
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040574a
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
mov word [ecx*2 + 0x463d64], 0x2e
mov word [ecx*2 + 0x463d66], 0x4f
mov word [ecx*2 + 0x463d68], 0x56
mov word [ecx*2 + 0x463d6a], 0x4c
mov word [ecx*2 + 0x463d6c], 0
mov esi, 0x462c04
mov eax, 0x10000
call fcn.0041beef
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov word [esi + 0x24], es
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
push 0
push 0
push 0x463d64
call fcn.004062ee
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
cmp eax, 0xffffffff
je 0x41c9ad
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 8], eax
mov byte [esi + 0x29], 0
mov byte [esi + 0x2a], 0
mov byte [esi + 0x2b], 5
call fcn.0041ab58
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040585e
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
test eax, eax
je 0x41c756
cmp eax, 0x20
jbe 0x41c65e
cmp eax, 0x2f
jne 0x41c739
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040585e
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
call fcn.0041fc9e
sub eax, 0x41
cmp eax, 0x19
ja 0x41ca5f
lea ebx, [eax*4 + 0x43b004]
xor ecx, ecx
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040585e
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
cmp eax, 0x20
jbe 0x41c715
cmp eax, 0x2f
je 0x41c715
sub eax, 0x30
cmp eax, 9
ja 0x41ca5f
xchg ecx, eax
mov edx, 0xa
mul edx
test edx, edx
jne 0x41c70b
add ecx, eax
jae 0x41c6c8
mov eax, 0x34
jmp fcn.00415a77
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040574a
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
mov dword [ebx], ecx
jmp 0x41c65e
push ebx
push ecx
push edx
mov dword [0x46b038], esp
mov esp, dword [0x46b03c]
call fcn.0040574a
mov esp, dword [0x46b038]
pop edx
pop ecx
pop ebx
pop esi
pop edx
pop ecx
pop ebx
pop eax
ret
mov eax, 0x2a
jmp fcn.00415a77

Function at 0x41f165
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.0041f2b7
jne 0x4202c6
Function at 0x41f170
Capabilities:
Enumerate pe sections

Disassembly:
cmp al, 0x20
jb 0x41f259
mov edx, 0x46b1d8
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x41f192
test al, al
je 0x41f21f
add edx, 2
jmp 0x41f17f
mov cl, byte [edx + 1]
sub edx, 0x46b1d8
lea edx, [edx*2 + 0x18]
call fcn.0041f2b7
jne 0x4202c6
cmp al, 0x7c
je 0x41f21f
cmp al, cl
je 0x41f229
mov ah, dl
cmp dl, 0x1c
jne 0x41f1be
mov dl, 0x18
mov ch, dl
cmp esp, dword [0x463a54]
jbe 0x4202ee
mov edx, ebx
call fcn.004199aa
mov byte [edi], ah
mov dword [edi + 1], ebx
mov dword [ebx + 6], edi
mov edi, ebx
mov ebx, edx
push ecx
push edi
call fcn.0041f170
pop edi
pop ecx
add edi, 5
call fcn.0041f2b7
jne 0x4202c6
cmp al, 0x7c
je 0x41f202
cmp al, cl
je 0x41f232
mov ah, ch
jmp 0x41f1c0
cmp ch, 0x18
jne 0x41f21f
push ecx
push edi
call fcn.0041f165
pop edi
pop ecx
call fcn.0041f2b7
jne 0x4202c6
cmp al, cl
je 0x41f231
cmp eax, 0x5d
jne 0x41f21f
mov byte [edi], 0x14
ret
cmp ch, 0x18
je 0x41f22e
mov ebx, dword [edi + 1]
sub edi, 5
mov al, byte [edi]
cmp al, 0
je 0x41f252
mov byte [ebx], al
mov eax, dword [edi + 1]
mov dword [ebx + 1], eax
mov ebx, edi
jmp fcn.004199d7
mov byte [ebx], 0x28
mov dword [ebx + 1], edi
ret
cmp al, 0
je 0x41f263
mov byte [edi], al
mov dword [edi + 1], ebx
ret
mov eax, dword [ebx + 8]
cmp dword [eax + 4], 1
jne 0x41f272
cmp byte [eax + 8], 0x5f
je 0x41f28e
mov eax, 0x463aae
call fcn.004201aa
jne 0x41f28e
cmp byte [eax + 5], 0x28
jne 0x41f2b2
mov byte [edi], 0x28
mov ebx, dword [eax + 6]
mov dword [edi + 1], ebx
ret
mov eax, 0x463aae
call fcn.004201fa
mov byte [eax], 0xc
mov dword [eax + 1], ebx
mov byte [eax + 5], 0x28
mov dword [eax + 6], edi
mov byte [edi], 0
mov ebx, dword [0x46b090]
mov dword [edi + 1], ebx
ret
call fcn.00415c7f
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x1000
push 0x984
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov edi, eax
mov ecx, 0x261
push 0
mov esi, 0x10004058
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10001137
mov esp, ebp
pop ebp
ret

Function at 0x1000479c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x3c]
sub esp, 0x14
lea ecx, [eax + esi + 0x78]
mov eax, dword [ecx]
push ebx
push edi
test eax, eax
je 0x1000482b
cmp dword [ecx + 4], 0
je 0x1000482b
add eax, esi
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1000482b
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add eax, esi
xor ebx, ebx
add edx, esi
add edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x1000482b
mov ecx, dword [edx + ebx*4]
and dword [ebp - 0xc], 0
add ecx, esi
mov bl, byte [ecx]
mov dword [ebp - 4], ecx
test bl, bl
je 0x10004811
mov al, bl
mov ebx, dword [ebp - 0xc]
imul ebx, ebx, 0x83
movsx eax, al
add ebx, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov al, byte [eax]
test al, al
jne 0x100047f5
mov eax, dword [ebp - 0x10]
jmp 0x10004814
mov ebx, dword [ebp - 0xc]
and ebx, 0x7fffffff
cmp ebx, dword [ebp + 8]
je 0x10004831
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x14]
jb 0x100047de
xor eax, eax
pop edi
pop ebx
leave
ret
cmp dword [ebp + 0xc], 0
jne 0x10004845
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
mov eax, dword [edi + eax*4]
add eax, esi
jmp 0x1000482d
push ecx
push esi
call dword [ebp + 0xc]
jmp 0x1000482d
Function at 0x10006da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10006daf
pop dword [ebp - 0x20]
mov eax, 0x10006daf
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc9ddd18e
sub dword [ebp - 0x30], 0x7b8b8c43
mov dword [ebp - 0x2c], 0x8e9723bb
sub dword [ebp - 0x2c], 0x5c63d776
mov dword [ebp - 0x28], 0xe278d8b7
add dword [ebp - 0x28], 0x69d36b77
mov dword [ebp - 0x24], 0x24465321
sub dword [ebp - 0x24], 0x24465321
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x171ce6f9
add dword [ebp - 0x30], 0x5d55825d
mov dword [ebp - 0x2c], 0x57e6a508
add dword [ebp - 0x2c], 0xe985bc6d
mov dword [ebp - 0x28], 0x1f067cbe
sub dword [ebp - 0x28], 0xbb971052
mov dword [ebp - 0x24], 0x47354c20
sub dword [ebp - 0x24], 0x47354c20
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xeb269986
sub eax, 0xdb255932
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3dfe9
push 0
call eax
mov ecx, 0xc9d34c31
add ecx, 0x362d0bdd
mov edx, eax
mov ebx, 0x1001e200
add ebx, dword [ebp - 0x20]
mov esi, 0x5b4a0e01
sub esi, 0x5d4af0c8
sub dword [ebp - 4], 0x594296c0
mov edi, dword [ebx]
xor dword [ebp - 0x18], 0x1dbe3a9a
xor edi, esi
xor dword [ebp - 4], 0x782ebd38
mov dword [edx], edi
mov dword [ebp - 8], 0x7f3bb4c9
add edx, 0xdcc2c0dc
add edx, 0x233d3f28
add ebx, 0x50d0a22a
sub ebx, 0x50d0a226
loop 0x10006ec1
add eax, 0x1530b
mov ebx, eax
add eax, 0x400b4200
sub eax, 0x400b41fb
mov ecx, 0xf329eb6d
add ecx, 0x1cd61493
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x409480
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4094c5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a5d8
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4094dc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4094d2
cmp word [esp + 4], 0
je 0x409507
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409524
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4094f0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a5d8
add esp, 0x20c
ret
call fcn.0040d7a1
int3
Function at 0x409c90
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041cc50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x427484]
mov ebp, ecx
test edi, edi
jne 0x409cf7
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409530
add esp, 4
test al, al
je 0x409dd4
lea eax, [esp + 0x10]
push eax
call fcn.0041148d
mov edi, dword [0x427484]
add esp, 4
mov dword [edi*4 + 0x42a4b0], eax
inc edi
mov dword [0x427484], edi
xor esi, esi
test edi, edi
jle 0x409d44
nop dword [eax]
mov eax, dword [esi*4 + 0x42a4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x409d36
test dx, dx
je 0x409d32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x409d36
add ecx, 4
add eax, 4
test dx, dx
jne 0x409d10
xor eax, eax
jmp 0x409d3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x409d6b
inc esi
cmp esi, edi
jl 0x409d00
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d50
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x409d6f
cmp word [ebp + 2], 0x3a
jne 0x409d6f
mov al, 1
jmp 0x409dbb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409db9
mov bl, 1
cmp dword [0x427484], 0x400
jge 0x409db9
push ebp
call fcn.0041148d
mov ecx, dword [0x427484]
add esp, 4
mov dword [ecx*4 + 0x42a4b0], eax
inc ecx
mov dword [0x427484], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a5d8
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409b90
int3

Function at 0x409ee0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x427488]
sub esp, 0x20
test eax, eax
je 0x409f16
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409f0a
push 0
push dword [0x427488]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x427488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x427ca4], 0
je 0x409feb
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x427ca8
mov dword [esp + 0x20], 0x422cc4
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x422cc4
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x427ca8
call ebp
cmp eax, 0xffffffff
je 0x409fe7
test al, 0x10
je 0x409fe7
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x427ca8
mov dword [esp + 0x20], 0x422cc4
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x422cc4
call edi
inc esi
cmp esi, 0x14
jl 0x409f84
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40ae02
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ae41
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ae41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ae41
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ae41
cmp dword [ecx + 0x74], 0xe
jbe 0x40ae41
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412a2c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eabc
push 0x41eab4
push str.FlsAlloc
push 0x1f
call fcn.00412967
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a60
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
jmp 0x412a66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412aaa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eacc
push 0x41eac4
push str.FlsGetValue
push 0x21
call fcn.00412967
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412ae1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412ae9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ead4
push 0x41eacc
push str.FlsSetValue
push 0x22
call fcn.00412967
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412b23
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4149e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x414a34
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414b84
test al, al
jne 0x414a2e
sub edx, 2
cmp edx, edi
jne 0x414a14
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414a56
lea eax, [edi + 2]
cmp edx, eax
je 0x414a56
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414935
add esp, 0x10
jmp 0x414b50
push esi
lea ecx, [ebp - 0x255]
call fcn.00414b84
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414a99
push dword [ebp - 0x25c]
jmp 0x414a46
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414ad6
cmp word [ebp - 0x226], 0
je 0x414af7
cmp word [ebp - 0x226], ax
jne 0x414ad6
cmp word [ebp - 0x224], 0
je 0x414af7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414935
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414b43
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414ab0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414b2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414b50
push 0x414765
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419700
add esp, 0x10
jmp 0x414b20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5d8
leave
ret
Function at 0x41c840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c86d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c86d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4046dc
Capabilities:
Packed with generic packer

Disassembly:
call fcn.004020f9
call fcn.00407e30
call fcn.00407720
push dword [0x437ee0]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00407b70
add esp, 8
or eax, eax
je 0x4046f4
jmp 0x4020da
popfd
popal
ret 4

Function at 0x4056f4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x437f28], 0
push ebx
push esi
mov esi, 0x437f30
jne 0x405720
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x437f48], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x437f28], 1
push dword [0x437f48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4057bd
push 0x14
push 8
push dword [0x437ee0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4057e7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x437f2c]
test eax, eax
je 0x405762
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x437f2c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4057ec
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x437f48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x437ee0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4057e7
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x40be40
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bf97
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40be9f
test ebx, ebx
jle 0x40be9f
push edi
lea eax, [esp + 0x14]
push eax
push ebx
push dword [0x43bc68]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40be9f
cmp dword [esp + 0x10], ebx
jne 0x40be9f
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40bf96
mov edx, dword [0x43bc68]
mov ecx, edx
cmp dword [ecx], 0x50555245
jne 0x40bf96
push ebp
mov ebp, dword [ecx + 8]
add ecx, 0xc
add ebp, 0xadbaaccf
cmp ebp, 5
ja 0x40bf95
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x40bf95
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
add ecx, 8
mov dword [esp + 0x10], ecx
cmp eax, 0x434e5354
jne 0x40bf7d
test edi, edi
jle 0x40bf7d
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x437ee0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40bf7d
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x18]
push edi
push dword [esp + 0x14]
mov dword [esi + 4], ecx
push ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp ebp, 6
ja case.default.0x40bf3b
jmp dword [ebp*4 + 0x40bfa0]
mov dword [esi + 0x10], 0x40bfc0
mov dword [esi + 0x14], 0x40e740
jmp case.default.0x40bf3b
mov dword [esi + 0x10], 0x40bfe0
mov dword [esi + 0x14], 0x40e750
jmp case.default.0x40bf3b
mov dword [esi + 0x10], 0x40c090
mov dword [esi + 0x14], 0x40e780
mov eax, dword [0x438688]
mov dword [esi], eax
mov dword [0x438688], esi
mov eax, dword [0x43bc68]
mov ecx, dword [esp + 0x10]
add eax, 0xfffffff8
add ecx, edi
add eax, ebx
cmp ecx, eax
jb 0x40bee5
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x40ea10
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x43b474]
call fcn.00406ca7
cmp dword [0x435019], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x40eb13
cmp dword [0x438860], 0
jne 0x40eb13
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x43886c
call esi
cmp dword [0x438064], 0
je 0x40ea69
push 0x43bc70
call esi
push 0x447cd0
call esi
push 0x43b480
call esi
push ebp
push 0
push 0
push 0
push dword [0x447ccc]
mov dword [0x43b478], ebx
mov dword [0x438860], 1
call dword [sym.imp.USER32.DLL_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x438868]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x40eae6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eab0
cmp esi, dword [esp + 0x10]
je 0x40eadf
cmp dword [esi + 0x2c], 0
jne 0x40eadf
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x40ead0
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x40eac0
cmp dword [esi + 0x2c], 0
jne 0x40eadf
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x40eab0
pop edi
cmp dword [0x438064], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x40eb0b
push 0x43b480
call esi
push 0x447cd0
call esi
push 0x43bc70
call esi
push 0x43886c
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x412a60
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.004128d0
call fcn.0040ea10
lea ecx, [ecx]
push 0
call fcn.00412cc0
test eax, eax
jne 0x412a70
mov ecx, dword [0x43807c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
je 0x412b47
cmp dword [0x438080], eax
je 0x412b47
mov eax, dword [0x438078]
shl eax, 2
cmp dword [0x438888], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x412b3c
push eax
push ecx
push dword [0x43bc68]
call sub.MSVCRT.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [0x438078], esi
jle 0x412b0a
jmp 0x412ae0
mov eax, dword [0x43bc68]
mov cl, byte [eax + esi*4]
lea edx, [eax + esi*4]
movzx eax, byte [edx + 3]
inc esi
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 3], cl
mov cl, byte [edx + 1]
mov byte [edx + 1], al
mov byte [edx + 2], cl
cmp esi, dword [0x438078]
jl 0x412ae0
mov esi, dword [0x43bc68]
call fcn.00420f00
push 0x447cd0
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x4388a4]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x447cd0
call ebx
jmp 0x412b47
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.004131e0
mov dword [esp + 0xc], 1
call fcn.00420f00
push 0x447cd0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4388a4]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x447cd0
call ebx
mov eax, dword [0x4388a4]
mov eax, dword [eax + 0x14]
call eax
push 0x43b480
call edi
push 0x447cd0
call edi
push 0x43bc70
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x43889c]
call edi
push dword [0x43889c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x4388a0]
call edi
push dword [0x4388a0]
call esi
push 0x43b480
call ebx
push 0x447cd0
call ebx
push 0x43bc70
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x43b480
call esi
push 0x447cd0
call esi
push 0x43bc70
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret