joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4046d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x40840c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor cl, cl
mov byte [ebp - 0x11], cl
test cl, cl
jne 0x4022aa
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
jae 0x4022aa
mov edx, dword [ebx]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 4]
lea edi, [edx + ecx*4]
mov ecx, dword [ebx + 0x2c]
mov edx, eax
shl edx, 4
add edx, eax
cmp byte [ecx + edx*4 + 0x1c], 0
lea esi, [ecx + edx*4]
mov dword [ebp - 0x1c], esi
jne 0x40221f
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x40216d
mov edi, dword [edi]
cmp edi, 2
jl case.default.0x40217c
cmp edi, 5
jle 0x402150
cmp edi, 6
jne case.default.0x40217c
mov ecx, esi
call fcn.00401f50
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
mov byte [ebp - 0x11], 1
call fcn.00401a40
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
mov eax, dword [edi]
mov byte [ebp - 0x11], 1
cmp eax, 6
ja case.default.0x40217c
jmp dword [eax*4 + 0x4022c0]
cmp dword [esi + 0x18], 0x10
jb 0x4021a7
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
mov edi, dword [edi + 8]
push esi
call fcn.00401c20
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 4
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
push 1
lea ebx, [esi + 0x24]
mov eax, esi
call fcn.00401b10
add esp, 4
test al, al
je 0x402215
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [edi + 8]
push eax
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [ecx + edx*8]
push edx
call fcn.00401cb0
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
jmp 0x4020d5
push 0
lea ebx, [esi + 0x34]
mov eax, esi
call fcn.00401b10
add esp, 4
test al, al
je 0x402215
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
jmp 0x4021fe
call fcn.00401a40
test al, al
je case.default.0x40217c
mov eax, dword [ebx + 0x24]
test eax, eax
je case.default.0x40217c
mov edx, dword [edi + 8]
mov ecx, dword [ebx + 0x28]
push ecx
shl edx, 4
add edx, dword [ebx + 0x18]
push eax
mov eax, dword [esi + 0x20]
push edx
push eax
call fcn.00401fc0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 0x10
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020d5
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4033d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x404921
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40840c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
cmp cl, bl
jne 0x4034b4
xor edi, edi
mov dword [esp + 0x48], edi
cmp eax, ebx
jbe 0x403481
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403468
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403460
mov dword [esp + 0x48], edi
mov eax, 0x405ffc
cmp edi, 0x100000
ja 0x403485
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00403bce
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4034ab
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00403bce
add esp, 4
mov dword [esp + 0x48], eax
mov byte [esp + 0x20], 2
cmp eax, ebx
je 0x403502
push 0x402540
push 0x402500
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403d21
jmp 0x403504
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x20], 1
cmp eax, edi
je 0x403534
cmp eax, ebx
je 0x403531
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402540
push ecx
push 0x44
push eax
call fcn.00403cbe
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004030a0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x403be6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40840c]
jne 0x403bf0
repz ret
jmp fcn.0040409b
Function at 0x4eb660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x99000]
lea eax, [edi + 0xdc598]
push dword [eax]
mov dword [eax], 0xb7c036de
push eax
push edi
or ebp, 0xffffffff
jmp 0x4eb692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eb699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb688
mov eax, 1
add ebx, ebx
jne 0x4eb6ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eb6bc
jne 0x4eb6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb6db
dec eax
add ebx, ebx
jne 0x4eb6c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eb6a0
add ebx, ebx
jne 0x4eb6d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4eb72d
xor ecx, ecx
sub eax, 3
jb 0x4eb6f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4eb762
sar eax, 1
mov ebp, eax
jmp 0x4eb6fe
add ebx, ebx
jne 0x4eb6fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb6cc
inc ecx
add ebx, ebx
jne 0x4eb70c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb6cc
add ebx, ebx
jne 0x4eb719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4eb70e
jne 0x4eb72a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4eb70e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4eb74c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4eb73e
jmp 0x4eb68e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4eb74c
add edi, ecx
jmp 0x4eb68e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2a35
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4eb76e
cmp byte [edi], 0x11
jne 0x4eb76e
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 al, bl
loop 0x4eb773
lea edi, [esi + 0xe6000]
mov eax, dword [edi]
or eax, eax
je 0x4eb7eb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeb1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb2d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4eb7a0
mov ecx, edi
jns 0x4eb7cf
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 + 0xeb2d8]
or eax, eax
je 0x4eb7e5
mov dword [ebx], eax
add ebx, 4
jmp 0x4eb7bd
call dword [esi + 0xeb2d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4eb81c
cmp al, 0xef
ja 0x4eb80f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4eb7f1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4eb7fe
mov ebp, dword [esi + 0xeb2dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4eb850
sub esp, 0xffffff80
jmp 0x461bf1
Function at 0x101a30b7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10260f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
call fcn.10274b6d
xor edi, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x40], edi
push eax
push dword [esi + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [0x102abb0c]
mov eax, dword [esp + 0x24]
mov ecx, esi
sub dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.10278c40
test eax, eax
jns 0x101a3155
call fcn.1008b6ce
push dword [eax + 0x58]
push ecx
call fcn.1008b6ce
pop ecx
push dword [eax + 0x58]
jmp 0x101a3167
call fcn.1008b6ce
push dword [eax + 0x5c]
push ecx
call fcn.1008b6ce
pop ecx
push dword [eax + 0x60]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.10276364
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
call dword [0x102abab8]
call fcn.1008b6ce
push dword [eax + 0x6c]
push ecx
call fcn.1008b6ce
pop ecx
lea ecx, [esp + 0x10]
push dword [eax + 0x6c]
lea eax, [esp + 0x28]
push eax
call fcn.10276364
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.10274be1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1028105c
mov esp, ebp
pop ebp
ret 4
Function at 0x101a4027
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1026105c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [ebp + 8]
sub dword [ebp + 0x18], 2
sub dword [ebp + 0x1c], 2
call fcn.1008b6ce
add eax, 0xd0
je 0x101a4071
mov eax, dword [eax + 4]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 4]
call dword [0x102aba48]
mov esi, dword [ebp + 0xc]
lea edi, [esp + 0x24]
lea esi, [esi + 0x104]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1008b6ce
xor edi, edi
lea ecx, [esp + 0x1c]
push dword [eax + 0x58]
push 1
push edi
call fcn.10274dc1
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], edi
push eax
mov ecx, ebx
call fcn.10273c95
xor ecx, ecx
mov esi, eax
test esi, esi
setne cl
test ecx, ecx
jne 0x101a40c8
call fcn.1021f333
push dword [ebp + 0x14]
lea eax, [esp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push eax
call fcn.10274319
push dword [ebp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, ebx
inc eax
push eax
call fcn.1027435e
push dword [ebp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, ebx
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10274319
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x18]
call fcn.1027435e
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0x18]
call fcn.1027435e
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.1027435e
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.1027435e
push esi
mov ecx, ebx
call fcn.10273c95
mov dword [esp + 0x10], 0x1000bf6c
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
lea esi, [ebp + 0x10]
push 1
mov byte [esp + 0x4c], 1
lea ecx, [esp + 0x14]
push dword [eax + 0xa8]
push edi
push edi
push 0x4b
push 0x64
push 2
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100c4b8c
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10007ce4
call fcn.10097cc7
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x102001c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xc
mov eax, 0x1026791d
call fcn.102829c6
mov edi, ecx
test edi, edi
jne 0x102001d7
call fcn.1021f333
xor eax, eax
xor ebx, ebx
cmp dword [edi + 8], ebx
setne al
test eax, eax
je 0x102001d2
lea ecx, [edi + 0xa4]
call fcn.10086cf8
cmp dword [edi + 0x3c], ebx
je 0x10200206
cmp dword [edi + 0x14], ebx
jbe 0x10200206
cmp dword [edi + 0x1c], ebx
je 0x10200206
mov ecx, edi
call fcn.10203020
mov ecx, edi
call fcn.10201866
push dword [edi + 0x3c]
mov esi, dword [0x102ab6d0]
mov dword [edi + 0x94], ebx
call esi
mov eax, dword [edi + 0x38]
mov dword [edi + 0x3c], ebx
pop ecx
test eax, eax
je 0x10200245
push 0x10056754
lea esi, [eax - 4]
push dword [esi]
push 0x10
push eax
call fcn.1028121d
push esi
mov esi, dword [0x102ab6d0]
call esi
pop ecx
push dword [edi + 0xec]
mov dword [edi + 0x38], ebx
call esi
push dword [edi + 0xf0]
mov dword [edi + 0xec], ebx
call esi
pop ecx
pop ecx
mov dword [edi + 0xf0], ebx
cmp dword [edi + 0x78], ebx
je 0x10200296
cmp dword [edi + 0x80], ebx
jbe 0x10200287
mov eax, dword [edi + 0x78]
push dword [eax + ebx*4]
call esi
inc ebx
pop ecx
cmp ebx, dword [edi + 0x80]
jb 0x10200273
xor ebx, ebx
push dword [edi + 0x78]
call esi
pop ecx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x80], ebx
cmp dword [edi + 0x7c], ebx
je 0x102002c9
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x84], ebx
jbe 0x102002ba
mov eax, dword [edi + 0x7c]
push dword [eax + ebx*4]
call esi
inc ebx
pop ecx
cmp ebx, dword [edi + 0x84]
jb 0x102002a6
xor ebx, ebx
push dword [edi + 0x7c]
call esi
pop ecx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x84], ebx
push dword [edi + 0xf4]
call esi
xor esi, esi
mov dword [edi + 0xf4], ebx
inc esi
cmp dword [edi + 4], 0
pop ecx
je 0x102002ee
push esi
push dword [edi + 4]
call dword [0x102a50b8]
mov dword [edi + 4], ebx
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x10200306
push esi
push eax
call dword [0x102a50b8]
mov dword [edi + 0xbc], ebx
push 0xf
call fcn.100a8a45
mov dword [ebp - 4], ebx
mov eax, dword [edi + 8]
add eax, 0x24
push ebx
push edi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.10226214
test eax, eax
je 0x1020032f
mov ecx, dword [ebp - 0x14]
push eax
call fcn.102261d1
or dword [ebp - 4], 0xffffffff
push 0xf
call fcn.100a8aba
or eax, 0xffffffff
mov dword [edi + 0x90], ebx
mov dword [edi + 0xc4], esi
mov dword [edi + 0xc8], esi
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xe0], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xe8], ebx
mov word [edi + 0x30], ax
call fcn.1028292b
ret
Function at 0x10226d4c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10226d9b
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call dword [0x102ab718]
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x10226d90
mov edx, ecx
movsx ecx, byte [edi + esi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x10226d7e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1021f333
int3
Function at 0x10252d76
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10252dc5
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call dword [0x102ab700]
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x10252dba
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x10252da8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1021f333
int3
Function at 0x401ad0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b14
test esi, esi
je 0x401b14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401af0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d00
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e28
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d8e
cmp eax, 4
jne 0x401db0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d9e
cmp edx, 4
je 0x401d9e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d00
Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x630038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x63003c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x630050]
fstp qword [0x630050]
je 0x417c63
mov eax, dword [0x6337e0]
test eax, eax
je 0x417c57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x630041]
mov cl, byte [0x630048]
xor cl, dl
xor edx, edx
mov dl, byte [0x630047]
and eax, 0xc
imul eax, edx
mov esi, dword [0x630038]
mov byte [0x630048], cl
mov ecx, dword [0x630034]
push ebp
mov ebp, dword [0x630030]
and ecx, 4
xor esi, eax
push edi
lea eax, [esp + 0x14]
add ebp, ecx
push 0x50
push eax
mov dword [0x630030], ebp
mov dword [0x630038], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x63004d]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x636dc0]
push edx
and cl, al
mov byte [0x636dc0], cl
mov cl, byte [0x630046]
or cl, 2
shr cl, 1
and ecx, 0xff
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
insb byte es:[edi], dx

Function at 0x457bdf
Capabilities:
Encode data using xor

Disassembly:
out dx, al
sub byte [esi], al
dec ebp
pop es
dec ebp
or al, 0xf9
pop esp
push es
inc edi
nop
pop ebx
mov dl, 0xcd
aaa
push edi
xor dword [eax - 0x51], 0x35
and edi, ebx
invalid
push ebp
daa
outsd dx, dword [esi]
adc bl, byte [eax - 0xa]
jno 0x457bdc
movsb byte es:[edi], byte [esi]
aad 0x20
xor al, 0xc4
and byte [esp + eax*8], dh
mov ebp, 0x96d9fd52
fstp dword [esi + 0x48]
imul esp, dword [esi], 0xb0698202
dec eax
xor eax, 0x6ccb6860
jae 0x457b9e
dec edx
out dx, eax
pop eax
add eax, 0x58271309
dec ecx
rcl byte [eax + 0x7edaca]
aas
jns 0x457ba7
pop ecx
or eax, 0x7a67053f
adc bh, byte [ebp + 0x2b]
mov dh, byte [ebp + 0x42]
inc edx
sub ecx, dword [edx - 0x7b8abd8b]
inc edx
jne 0x457b66
scasb al, byte es:[edi]
out dx, eax
jne 0x457b9d
cld
outsb dx, byte [esi]
and ah, cl
pop ss
cwde
jle 0x457bc0
salc
add dword [edx], eax
cmp byte [ebx - 0x63], dh
xchg edx, eax
ljmp 0xeb00
Function at 0x628bb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303b0
cmp edx, dword [eax]
je 0x628bd3
add eax, 8
inc ecx
cmp eax, 0x630440
jl 0x628bc4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303b0]
jne 0x628d01
mov eax, dword [0x636dd4]
cmp eax, 1
je 0x628cdb
test eax, eax
jne 0x628c04
cmp dword [0x6302dc], 1
je 0x628cdb
cmp edx, 0xfc
je 0x628d01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628c3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629590
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628c7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62d8f4
push edi
call fcn.0062b8f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629590
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006295a0
lea eax, [ebp - 0xa0]
push 0x62d8d4
push eax
call fcn.006295a0
push dword [esi + 0x6303b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.006295a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b864
add esp, 0x2c
pop edi
jmp 0x628d01
lea eax, [ebp + 8]
lea esi, [esi + 0x6303b4]
push 0
push eax
push dword [esi]
call fcn.00629a20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret