joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae95e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba81c
push 0x4ba814
push str.FlsGetValue
push 0x21
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae995
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b77ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ae99d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba824
push 0x4ba81c
push str.FlsSetValue
push 0x22
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae9d7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b77ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b51c0
Capabilities:
Parse pe header

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

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40d26b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40d27a
pop dword [ebp - 0x40]
mov eax, 0xef7b0b6b
sub eax, 0xef3a38f1
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4ec164ec
sub dword [ebp - 0x50], 0x6f1fa1
mov dword [ebp - 0x4c], 0x7af0b438
sub dword [ebp - 0x4c], 0x48bd67f3
mov dword [ebp - 0x48], 0x79f960e1
add dword [ebp - 0x48], 0xd252e34d
mov dword [ebp - 0x44], 0x13bd1f65
add dword [ebp - 0x44], 0xec42e09b
lea eax, [ebp - 0x50]
push eax
mov eax, 0x7f3ecb23
add eax, 0x81036551
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xd85bb847
add dword [ebp - 0x50], 0x9c16b10f
mov dword [ebp - 0x4c], 0xf707c70d
sub dword [ebp - 0x4c], 0xb59b6598
mov dword [ebp - 0x48], 0x668fbc73
sub dword [ebp - 0x48], 0x3205007
mov dword [ebp - 0x44], 0xc2dcfa7c
add dword [ebp - 0x44], 0x3d230584
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9101fdd
add eax, 0xf7321147
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3f2e8
push 0
call eax
mov ecx, 0x11a926a5
sub ecx, 0x11a8d8c1
mov esi, eax
mov edi, 0x434400
add edi, dword [ebp - 0x40]
mov edx, 0x3daa7d
add edx, 0xe3ed98bd
add dword [ebp - 0x28], edx
mov ebx, dword [edi]
mov dword [ebp - 0x20], 0xe2d56aaa
xor ebx, edx
mov dword [ebp - 0xc], 0xfa3b0de
mov dword [esi], ebx
xor dword [ebp - 0x34], edi
add esi, 0xbc9af05b
add esi, 0x43650fa9
add edi, 0xe99a3f58
add edi, 0x1665c0ac
loop 0x40d396
add eax, 0xda1ce04a
sub eax, 0xda1bb5e7
xor ebx, ebx
add ebx, eax
add eax, 0xddf09d4a
sub eax, 0xddf09d45
mov ecx, 0xc6ddef5a
sub ecx, 0xc69def5a
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x456350], 1
mov dword [0x456354], 1
mov dword [0x456358], 1
mov dword [0x456344], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x405c20
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edi
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov ebx, eax
cmp edi, eax
je 0x405c56
mov dword [esp], esi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x405c68
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4
mov ecx, esi
call sym._47
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4

Function at 0x406650
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x406688
mov ecx, ebx
call sym._47
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret 4

Function at 0x406c30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x14
test edx, edx
je 0x406c47
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fflush
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40dc90
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov eax, dword [0x4560ac]
test eax, eax
je 0x40dd10
test ecx, ecx
je 0x40dcf0
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
mov ecx, ebx
mov edx, eax
call sym.text_1
mov dword [esp], eax
mov ebx, edx
mov dword [esp + 4], edx
call dword [0x4560ac]
sub esp, 8
test ebx, ebx
je 0x40dcd4
test dword [ebx], 0x40000000
je 0x40dd50
mov dword [esp], 0x4421e8
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
cmp byte [eax], 0
jne 0x40dd70
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0
mov dword [esp + 4], 0
call eax
sub esp, 8
jmp 0x40dcd4
mov esi, edx
mov dword [esp], 2
call dword [0x4424a4]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_fflush
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0x4421f8
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
mov edx, ebx
mov ecx, eax
call fcn.004089b0
jmp 0x40dcd4
mov byte [eax], 0
mov dword [esp], 0x442168
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
mov ebx, dword [eax]
mov esi, eax
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x40dd9b
mov eax, dword [edi - 8]
lea edx, [eax + 0x10]
xor eax, edx
test edx, eax
jns 0x40dde8
call fcn.00409c50
mov dword [esi], edi
mov eax, dword [ebx - 8]
lea edx, [ebx - 8]
test eax, 0xfffffff0
je 0x40ddc0
lea ecx, [eax - 0x10]
xor eax, ecx
not eax
or eax, ecx
js 0x40ddf0
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.00409c50
mov eax, dword [ebx]
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 8], eax
call sym.4l
add esp, 0x10
mov ecx, ebx
pop ebx
pop esi
pop edi
jmp sym.text
mov dword [edi - 8], edx
jmp 0x40dd9b
mov eax, dword [ebx]
mov dword [ebx - 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], 0
call sym.4l
jmp 0x40dce9
Function at 0x40e9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [esp + 0x1c], edx
mov dword [esp], 0x456090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
test edi, edi
jle 0x40ea50
mov dword [esp], 0x4421e8
xor esi, esi
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
mov ebp, dword [sym.tnim_DatInit000_0]
mov edi, eax
jmp 0x40ea1c
add esi, 1
add ebx, 8
cmp dword [esp + 0x1c], esi
je 0x40ea56
mov dword [esp], 1
call ebp
mov dword [esp + 8], 0
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, dword [ebx]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.xt
sub esp, 0xc
cmp byte [edi], 0
je 0x40ea10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.tnim_DatInit000_0]
mov dword [esp], 1
call ebp
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x44349d
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x456090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4199b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + eax + 0x30], edx
add eax, 4
cmp eax, 0x20
jb 0x4199e5
mov dword [esp], 0x4421e8
mov eax, ebp
movzx edx, al
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
cmp byte [eax], 0
mov dword [esp + 0x1c], eax
jne 0x419ba0
mov eax, esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, al
mov dword [esp + 0x38], eax
lea eax, [ebx - 6]
cmp al, 0x10
mov dword [esp + 0x34], edx
ja case.0x419a36.1
movzx eax, al
jmp dword [eax*4 + 0x443ee4]
movzx ebx, bl
lea esi, [esi]
nop
mov eax, ebp
mov dword [esp + 0x3c], ebx
cmp al, 0x17
jne 0x419a5a
mov dword [esp + 0x30], 8
mov eax, esi
cmp al, 3
jne 0x419b50
mov esi, dword [0x4560fc]
mov ebx, 0x443f30
mov edx, 0x443ee0
mov eax, dword [esp + 0x10]
mov ecx, 0x443ee0
mov dword [esp + 4], edx
add eax, 4
test edi, edi
lea edi, [esp + 0x30]
cmove eax, ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
je 0x419acf
call fcn.00417700
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0
jne 0x419acf
mov esi, dword [0x443f28]
mov edi, dword [0x443f2c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.004176a0
test ebx, ebx
je 0x419adf
test dword [ebx], 0x40000000
je 0x419b90
mov eax, dword [esp + 0x2c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov ebx, 0x3a
jmp 0x419a48
mov ebx, 0x29
jmp 0x419a48
mov ebx, 0x11
jmp 0x419a48
mov ebx, 6
jmp 0x419a48
mov ebx, 1
jmp 0x419a48
xor ebx, ebx
jmp 0x419a48
movzx eax, cx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._30
sub esp, 8
mov ebx, edx
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
jne 0x419acf
test eax, eax
lea edx, [edx + 4]
mov eax, 0x443ee0
mov esi, dword [0x4560fc]
cmove edx, eax
jmp 0x419a74
mov dword [esp], ebx
call fcn.00409450
jmp 0x419adf
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
Function at 0x421dd0
Capabilities:
Read file on windows

Disassembly:
push ebx
sub esp, 0x28
mov eax, dword [esp + 0x30]
test ecx, ecx
je 0x421df1
mov ebx, dword [ecx]
cmp word [ebx + 0xa], 1
jle 0x421e40
mov ebx, dword [ebx + 0xc]
cmp dword [ebx + 8], 0x6ecb0d00
jne 0x421e40
test eax, eax
js 0x421e08
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x30], eax
add esp, 0x28
pop ebx
jmp sym._50
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0040a390
add esp, 0x28
xor eax, eax
pop ebx
ret 4
call sym.ata_6
add esp, 0x28
xor eax, eax
pop ebx
ret 4
Function at 0x423c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x3c
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov edx, dword [ecx]
mov dword [esp], 0x4421e8
lea ebp, [edx - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call sym.s.._s.nimble_spkgs2_swinim_3.9.2_154c271e1d766fca5aea32beecec5645e6d2e114_swinim_swinstr.nim.c
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, edx
xor eax, ebp
not eax
or eax, ebp
js 0x423d30
call fcn.00409c50
movzx ecx, byte [edi]
xor eax, eax
mov edx, dword [esi]
test cl, cl
jne 0x423d20
test edx, edx
jle 0x423d10
mov eax, dword [esi + 4]
mov ecx, ebx
mov edx, dword [eax + 8]
mov dword [esp], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 4], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
call sym.procs_u220_8
sub esp, 0x10
cmp byte [edi], 0
jne 0x423d20
mov eax, dword [esi]
test eax, eax
jle 0x423db0
mov eax, dword [esi + 4]
lea ecx, [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call sym.losures__stdZexitprocs_u19
sub esp, 0x10
cmp byte [edi], 0
jne 0x423d20
add esp, 0x3c
mov ecx, esi
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
jmp sym.RT_XIAA
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
js 0x423d98
cmp edx, 0x80000000
je 0x423d98
mov eax, dword [esi + 4]
mov edx, ebp
shl edx, 4
mov dword [esp + 0x18], eax
add eax, edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
lea ecx, [eax + ecx + 8]
call sym..c
cmp byte [edi], 0
jne 0x423d20
mov ecx, esi
mov edx, ebp
call fcn.0040f380
movzx ecx, byte [edi]
mov eax, dword [esp + 0x1c]
jmp 0x423c89
mov dword [esp + 4], ebp
mov dword [esp], ebp
call sym.bss
movzx ecx, byte [edi]
xor eax, eax
jmp 0x423c89
sub eax, 1
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.bss
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4307a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.tnim_DatInit000_0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.tnim_DatInit000_0
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x4312f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x431317
mov eax, 0
jmp 0x43135b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x43133a
mov eax, 0
jmp 0x43135b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x431356
mov eax, 0
jmp 0x43135b
mov eax, 1
leave
ret

Function at 0x43135d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4313bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4313b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4313b4
mov eax, dword [ebp - 4]
jmp 0x4313d0
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x431391
mov eax, 0
leave
ret
Function at 0x43886d
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x438986
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043c654
cmp eax, 1
jne 0x43897c
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x438932
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x438949
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x43892e
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x438967
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x438987
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x43978e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x4424c0], eax
mov eax, dword [0x4424c0]
cmp eax, 0xffffffff
jne 0x4397af
call sub.msvcrt.dll_abort
nop
leave
ret

Function at 0x439921
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._snim_2.0.2_slib_swindows_swinlean.nim.c
mov dword [esp], 0x456d80
call sym.kK9blFuQVA_14
mov eax, dword [0x4424c0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x439968
mov eax, dword [ebp - 0x20]
jmp 0x439ab3
call sym.4IkK9blFuQVA_3
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x43997f
cmp dword [ebp - 0x20], 0
jne 0x439989
mov eax, 0
jmp 0x439ab3
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.tsdotdotatsdotdotatsnimminus2dot0dot2atslibatswindowsatswinleandotnim_DatInit000_0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x439a5b
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x4424c0]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x439ab0
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x439b77
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym._osErrorMsg__stdZoserrors_u8_4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.windows_swinlean.nim.c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x439bd2
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x4424c0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x439cfc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x439c64
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x439c21
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._274
mov dword [ebp - 0x10], 0
mov eax, dword [0x4424c0]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x439cfc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x439c94
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x439cfc
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._274
mov dword [ebp - 0x10], 0
mov eax, dword [0x4424c0]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax