joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10111600
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101027fa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011166f
cmp esi, dword [ebp - 4]
je 0x1011166a
cmp dword [ebp + 0xc], 0
je 0x1011166a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10111647
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10111152
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10111671
xor eax, eax
inc eax
jmp 0x10111671
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101116d6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10139040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.101027fa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.101027fa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1011174d
cmp word [ecx], dx
je 0x1011174d
mov eax, dword [0x10127b94]
push edi
dec eax
push eax
push 0x10127a80
call fcn.10111675
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101117c0
cmp word [eax], dx
je 0x101117c0
mov eax, dword [edi]
test eax, eax
je 0x10111771
cmp word [eax], dx
je 0x10111771
lea eax, [ebp - 0x10]
push eax
call fcn.10111058
jmp 0x1011177a
lea eax, [ebp - 0x10]
push eax
call fcn.101110f3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101117ea
mov eax, dword [0x10127a7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10127770
call fcn.10111675
add esp, 0xc
test al, al
je 0x101117ea
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101117b5
cmp word [eax], di
je 0x101117b5
lea eax, [ebp - 0x10]
push eax
call fcn.10111058
pop ecx
jmp 0x101117ec
lea eax, [ebp - 0x10]
push eax
call fcn.101110f3
jmp 0x101117b2
mov eax, dword [edi]
test eax, eax
je 0x101117d7
cmp word [eax], dx
je 0x101117d7
lea eax, [ebp - 0x10]
push eax
call fcn.1011100d
pop ecx
jmp 0x101117ea
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x101118b5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101114fa
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101118b5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101118b5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101118b5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10111842
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10107c7e
test ebx, ebx
je 0x101118b0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10107c7e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101118b5
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101118b5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100eccdd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101118b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100890df
leave
ret
Function at 0x101143af
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1011432b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1011451e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1011451e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101144d3
jg 0x1011440b
test eax, eax
je 0x101144c9
push 1
push 0x1000
call fcn.10106e72
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1011442e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101144c0
push 0x8000
push ebx
call fcn.1011425c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10114457
jg 0x10114452
cmp ecx, 0x1000
jb 0x10114457
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010bed8
add esp, 0x10
cmp eax, 0xffffffff
je 0x1011449c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10114452
jl 0x10114483
test ecx, ecx
jne 0x10114444
push dword [ebp - 0xc]
push ebx
call fcn.1011425c
push esi
call fcn.101021bb
add esp, 0xc
xor ebx, ebx
jmp 0x1011452c
cmp byte [edi + 0x24], 0
je 0x101144b3
cmp dword [edi + 0x20], 5
jne 0x101144b3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101144be
mov ebx, dword [edi + 0x18]
jmp 0x101144c0
xor ebx, ebx
push esi
call fcn.101021bb
pop ecx
jmp 0x1011452c
test ecx, ecx
jg 0x10114495
jl 0x101144d3
test eax, eax
jae 0x10114495
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010cb82
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101144f3
cmp byte [edi + 0x1c], 0
je 0x10114495
jmp 0x10114524
push ebx
call fcn.1010f50e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10114495
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1011452c
cmp byte [edi + 0x1c], 0
je 0x10114529
mov ebx, dword [edi + 0x18]
jmp 0x1011452c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1010cb82
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10116c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10116cbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10116cbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x10002480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x100024e3
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.10002420
add esp, 4
cmp dword [ebp + 8], eax
jne 0x100024d9
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
jmp 0x100024e5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x100024af
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x100025d8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x10002620
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.10002520
add esp, 8
cmp eax, dword [ebp + 0x10]
jne 0x1000261e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10002622
jmp 0x100025cf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10024fbe
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jle 0x10024fec
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x10097400]
dec edx
inc ecx
movzx eax, ax
test edx, edx
jg 0x10024fc6
pop edi
pop esi
ret
Function at 0x10086603
Capabilities:
Write file on windows

Disassembly:
push 0x3c
push 0x10092500
call fcn.100647f4
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [esi], 0x100246bc
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp byte [esi + 0x22c], 1
jne 0x1008667f
mov dword [ebp - 4], edi
push edi
push edi
push edi
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1008666d
cmp eax, edi
jne 0x10086673
push dword [esi + 0x240]
lea eax, [ebp - 0x4c]
push eax
call fcn.10083e48
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x2c
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10086673
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.100866ac
mov ecx, esi
call fcn.1008544d
mov eax, dword [esi + 0x248]
cmp eax, edi
je 0x10086697
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.10064839
ret

Function at 0x7f8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007f81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7f807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f806a
add dl, dl
jne 0x7f8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f80dc
xor eax, eax
add dl, dl
jne 0x7f8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f817d
add dl, dl
jne 0x7f80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7f80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7f8075
mov eax, 1
add dl, dl
jne 0x7f80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f80e1
sub eax, ebx
mov ebx, 1
jne 0x7f8128
mov ecx, 1
add dl, dl
jne 0x7f810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7f8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7f813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7f814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f8136
cmp eax, 0x7d00
jae 0x7f816d
cmp eax, 0x500
jb 0x7f8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
cmp eax, 0x7f
ja 0x7f8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7f819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7f8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x409d12
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x409d3c
cmp eax, 0x7fffffff
ja 0x409d36
add eax, eax
push eax
call fcn.0040a914
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x409d3c
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, ecx
pop ebp
ret 8
Function at 0x40b7d4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
mov dword [ebp - 0x18], 0xe0
mov dword [ebp - 4], 0xe1
mov dword [ebp - 0x14], 0xa2
mov eax, dword [0x421800]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x2a
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x8b
ja case.0x40b81b.1
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x40be84]
jmp dword [eax*4 + 0x40be70]
mov dword [ebp - 0x74], 0x5d
mov ecx, dword [0x421804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [str.AJ], eax
mov edx, dword [0x4217ec]
sub edx, dword [ebp - 4]
mov dword [0x421818], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebp - 0x14], eax
jmp 0x40b92b
mov dword [ebp - 0x78], 0xea
mov ecx, dword [0x4217e0]
or ecx, dword [0x4217e0]
mov dword [str.AJ], ecx
jmp 0x40b92b
mov dword [ebp - 0x7c], 0xb9
mov edx, dword [0x4217fc]
sub edx, dword [0x421824]
mov dword [ebp + 8], edx
push fcn.00418e94
mov eax, dword [0x421824]
push eax
mov ecx, dword [0x4217f4]
push ecx
call fcn.00412234
add esp, 0xc
jmp 0x40b92b
mov dword [ebp - 0x80], 0x40
mov edx, dword [ebp - 0x84]
push edx
call fcn.0040bf14
add esp, 4
mov eax, dword [0x4217e0]
push eax
mov ecx, dword [0x4217fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x18]
mov dword [0x4217f0], edx
jmp 0x40b92b
mov dword [ebp - 0x6c], 0xb1
push fcn.0040bf14
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00415df4
add esp, 8
mov ecx, dword [0x4217f8]
push ecx
mov edx, dword [0x4217f8]
push edx
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [0x4217fc], eax
push fcn.00415df4
mov eax, dword [0x42180c]
push eax
call fcn.0040e4a4
add esp, 8
mov ecx, dword [0x4217e4]
push ecx
call fcn.0040bf14
add esp, 4
mov edx, dword [0x421824]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [0x421804]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 4], eax
je 0x40baf6
add byte [eax], al
mov dword [ebp - 0x90], 0x85
mov dword [ebp - 0x38], 0xe9
mov edx, dword [0x4217f0]
xor edx, dword [ebp - 0x38]
mov dword [ebp + 8], edx
mov esi, dword [0x421820]
add esi, dword [0x421814]
push fcn.00418e94
mov eax, dword [0x4217e0]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00412234
add esp, 0xc
cmp esi, eax
jae 0x40bb68
mov dword [ebp - 0x94], 0xcb
push fcn.00415df4
mov edx, dword [ebp + 8]
push edx
call fcn.0040e4a4
add esp, 8
push fcn.00415df4
mov eax, dword [ebp + 8]
push eax
call fcn.0040e4a4
add esp, 8
jmp fcn.0040bb82
mov dword [ebp - 0x98], 0xc9
mov ecx, dword [ebp - 4]
mov edx, 1
lock xadd dword [ecx], edx
inc edx
mov dword [ebp - 0x38], edx
Function at 0x40bf94
Capabilities:
Enumerate files on windows
Get file size
Get thread local storage value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov dword [ebp - 0x14], 0xa6
mov dword [ebp - 0x28], 0xdf
mov dword [ebp - 0x38], 0x72
mov dword [ebp - 0x1c], 0x73
mov dword [ebp - 0x24], 0xad
mov dword [ebp - 4], 0xe1
mov eax, dword [0x421814]
add eax, dword [0x4217fc]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x28]
cmp eax, ecx
jne 0x40bfe7
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x40], 0
Function at 0x4107c4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push esi
mov dword [ebp - 4], 0x3d
mov dword [ebp - 0x10], 0x4c
mov dword [ebp - 8], 0xde
mov dword [ebp - 0x18], 0xd2
mov dword [ebp - 0x14], 0x1f
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x28]
sub eax, dword [0x42180c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x68]
or ecx, dword [0x421814]
mov edx, dword [str.AJ]
xor edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x410823
mov dword [ebp - 0x2c], 1
jmp 0x41082a
mov dword [ebp - 0x2c], 0
push fcn.0040b7d4
mov eax, dword [ebp - 4]
push eax
call fcn.004154e4
add esp, 8
test eax, eax
jne 0x410859
mov ecx, dword [ebp - 0xc]
or ecx, dword [0x4217e0]
mov dword [0x421800], ecx
jne 0x410859
mov dword [ebp - 0x30], 0
jmp 0x410860
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x30]
jbe 0x410871
mov dword [ebp - 0x34], 1
jmp 0x410878
mov dword [ebp - 0x34], 0
mov eax, dword [0x4217f4]
push eax
call fcn.00418e94
add esp, 4
test eax, eax
jne 0x4108ab
mov ecx, dword [0x4217e8]
push ecx
mov edx, dword [str.AJ]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4108ab
mov dword [ebp - 0x38], 0
jmp 0x4108b2
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jae 0x4108c3
mov dword [ebp - 0x3c], 1
jmp 0x4108ca
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x68]
add ecx, dword [0x4217f0]
Function at 0x418e94
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov dword [ebp - 0x10], 0xe5
mov dword [ebp - 0x24], 0x51
mov dword [ebp - 8], 0xcd
mov dword [ebp - 0x1c], 0xe0
mov dword [ebp - 4], 0x30
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 8]
mov dword [0x4217e8], eax
je 0x418fee
mov ecx, dword [0x421820]
push ecx
call fcn.0040bf14
add esp, 4
test eax, eax
je 0x418fee
mov edx, dword [0x421814]
imul edx, dword [str.AJ]
mov dword [ebp + 8], edx
mov eax, dword [0x421818]
xor edx, edx
div dword [0x421804]
mov esi, eax
mov eax, dword [0x421800]
push eax
mov ecx, dword [0x4217fc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x421820]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jbe 0x418f52
mov dword [ebp - 0x28], 0xc8
mov dword [ebp - 0x20], 0x11
mov ecx, dword [0x4217e4]
push ecx
call fcn.0040bf14
add esp, 4
mov eax, dword [0x4217ec]
xor edx, edx
div dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x418f78
mov dword [ebp - 0x2c], 0x8c
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4217f8], eax
invalid
dec ebp

Function at 0x418f74
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
add byte [ecx + 0x158bfc4d], cl
in al, 0x17
inc edx
add byte [ebx], ch
adc eax, 0x421804
mov dword [ebp - 0x30], edx
mov eax, dword [0x4217f4]
push eax
call fcn.0040bf14
add esp, 4
mov ecx, dword [0x4217f4]
mov dword [0x4217f8], ecx
mov edx, dword [0x4217f8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x418fcd
mov eax, dword [0x421808]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
je 0x418fcd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [str.AJ], eax
jmp 0x418fec
mov ecx, dword [0x4217f8]
imul ecx, dword [0x4217f8]
mov dword [ebp - 0x34], ecx
mov edx, dword [0x421814]
push edx
call fcn.0040bf14
add esp, 4
jmp 0x41900f
mov ecx, dword [0x4217f0]
push ecx
call fcn.0040bf14
add esp, 4
test eax, eax
je 0x41903c
mov edx, dword [0x4217fc]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test eax, eax
je 0x41903c
mov dword [ebp - 0x14], 1
jmp 0x419043
mov dword [ebp - 0x14], 0
mov eax, dword [0x4217f0]
push eax
call fcn.0040bf14
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
cmp esi, eax
je 0x41906e
mov dword [ebp - 0x18], 1
jmp 0x419075
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x41909b
mov dword [ebp - 0x44], 0xf1
mov ecx, dword [0x4217e8]
sub ecx, dword [0x4217e4]
mov dword [0x4217e4], ecx
jmp 0x41900f
mov edx, dword [0x4217f0]
sub edx, dword [str.AJ]
mov dword [0x421804], edx
mov eax, dword [0x4217e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x421804]
imul eax, dword [0x4217f0]
pop esi
mov esp, ebp
pop ebp
ret