joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403275
Capabilities:
Terminate process

Disassembly:
push 8
push 0x38
mov eax, 0x43a2b4
call fcn.0043924c
mov esi, ecx
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402ec8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402c05
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00402f37
mov dword [ebp - 4], 1
cmp byte [ebp - 0x28], 0
je 0x403340
movzx eax, byte [ebp - 0x38]
sub eax, 1
je 0x403339
sub eax, 3
je 0x4033b3
sub eax, 1
je 0x40332c
sub eax, 1
je 0x40331f
sub eax, 1
je 0x40330f
sub eax, 1
je 0x4032fc
sub eax, 1
jne 0x403340
lea eax, [ebp - 0x34]
push eax
call fcn.00412a7c
jmp 0x403340
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403340
push dword [eax + 4]
push dword [eax]
call fcn.00412542
jmp 0x403340
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403340
push dword [eax]
call fcn.004126dc
jmp 0x403340
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00403161
jmp 0x403340
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004030b3
jmp 0x403340
mov ecx, esi
call fcn.004031e0
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x28], 0
je 0x403352
lea ecx, [ebp - 0x34]
call fcn.00402c05
xor eax, eax
mov byte [ebp - 0x39], 2
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x39]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.004027a7
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub esi, edx
mov ecx, dword [ecx]
push ecx
push ecx
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
call fcn.004093ab
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
test al, al
je 0x4033bb
call fcn.00402c05
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x40]
jmp 0x4032ae
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402c05
mov eax, dword [0x452ac8]
call dword [eax + 0x6c]
mov ecx, dword [ebp - 0x14]
call fcn.0043922a
ret

Function at 0x40370f
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x43a2e8
call fcn.00416880
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x14
call fcn.00415ff6
mov ecx, dword [esi]
mov edx, eax
mov dword [ebp - 0x14], edx
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea esi, [edi + 4]
mov dword [ebp - 4], ebx
push esi
push ebx
push edx
push 0x403874
push ebx
push ebx
call fcn.0041b44c
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x403787
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00403791
call fcn.0041682f
ret 4
push 6
mov dword [esi], ebx
call fcn.00413396
int3
Function at 0x406eb1
Capabilities:
Encode data using xor

Disassembly:
push 0x1dc
mov eax, 0x43a966
call fcn.00416880
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
and dword [ebp - 0x40], 0
mov eax, dword fs:[0x2c]
push 0x38
pop edi
push 2
mov ecx, dword [eax]
mov eax, dword [0x452b5c]
mov dword [ebp - 0x48], esi
pop ebx
cmp eax, dword [ecx + 4]
jle 0x406f52
push 0x452b5c
call fcn.0041618f
cmp dword [0x452b5c], 0xffffffff
pop ecx
jne 0x406f52
and dword [ebp - 4], 0
cmp word [0x449afa], 0
mov eax, dword [0x449af8]
mov dword [ebp - 0x3c], eax
je 0x406f29
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
add edx, 0x31
xor word [ebp + ecx*2 - 0x3c], dx
inc ecx
cmp ecx, ebx
jl 0x406f16
lea eax, [ebp - 0x3c]
mov ecx, 0x452b64
push eax
call fcn.00401a9f
push 0x43c1c2
call fcn.004164a1
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x452b5c
call fcn.00416145
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00402815
cmp byte [ebp - 0x17], 0
jne 0x406f71
push 0x4493c0
mov ecx, esi
call fcn.00401a9f
jmp 0x4072ea
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
push ecx
mov ecx, 0x10101010
pop ecx
push ecx
mov ecx, 0xffff01ff
pop ecx
mov cs, word [esi + 0xff19]
jmp 0x416e4d
mov eax, esi
call fcn.0041682f
ret
xchg ebx, eax
sbb dword [esi + edx + 0x3d], esi
and al, byte [0xf741993]
cmp eax, 0x1994000
je 0x416e67
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
call fcn.004178f6
mov dword [eax], esi
mov esi, dword [edi + 4]
call fcn.004178ff
mov dword [eax], esi
call fcn.0041b4dd
int3

Function at 0x407846
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40788e
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x407856
jmp 0x40789b
cmp dword [esi], 0x4e0
jb 0x40789b
call fcn.004078d5
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x4078d5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, closesocket
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4078ed
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40792e
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], 0
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x4093c6
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x1c
mov eax, 0x43af07
call fcn.00416880
mov dword [ebp - 0x28], edx
mov eax, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x4004667f
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4093fb
xor al, al
jmp 0x40946f
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 0
je 0x409454
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040756f
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x409465
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x409465
mov bl, 1
jmp 0x409465
dec dword [esi]
mov esi, dword [esi]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
setne bl
lea ecx, [ebp - 0x20]
call fcn.00402c05
mov al, bl
call fcn.0041682f
ret
Function at 0x4095d1
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x450020]
xor eax, esp
mov dword [esp + 0x18], eax
push edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
xor ecx, ecx
mov byte [esp + 4], cl
mov dword [esp + 6], ecx
mov word [esp + 0xa], cx
lea ecx, [esp + 4]
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
mov al, byte [esp + 0x2c]
mov byte [esp + 9], al
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004027a7
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
lea ecx, [esp + 0x10]
setg byte [esp + 0xf]
call fcn.00402c05
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0xf]
pop edi
xor ecx, esp
call fcn.00415fe8
add esp, 0x1c
ret 8

Function at 0x4096e7
Capabilities:
Resolve dns

Disassembly:
push 0x40
mov eax, 0x43af82
call fcn.00416880
mov esi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ebx
mov dword [esi], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
mov dword [ebp - 4], edx
lea ecx, [ebx + 8]
mov dword [ebp - 0x2c], 1
mov edi, edx
add ebx, 0x108
jmp 0x409730
cmp byte [ecx], 0
je 0x409736
inc edi
inc ecx
cmp ecx, ebx
jne 0x409729
jmp 0x409738
mov edx, edi
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, 9
add eax, edx
push eax
call fcn.00406355
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40978c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406355
push eax
mov ecx, esi
call fcn.00409556
lea ecx, [ebp - 0x4c]
call fcn.00402ce9
lea ecx, [ebp - 0x28]
call fcn.00402ce9
mov eax, esi
call fcn.0041682f
ret 8
Function at 0x40979e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x17c
mov eax, 0x43afdf
call fcn.00416880
mov eax, ecx
mov dword [ebp - 0x180], eax
lea edx, [eax + 0x18]
xor ebx, ebx
call fcn.00409475
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0xffffffff
je 0x40997d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x184], eax
mov edi, 0x108
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.00418170
add esp, 0xc
lea eax, [ebp - 0x178]
push ebx
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jle 0x409978
mov ecx, dword [ebp - 0x174]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x38]
push str._u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], bl
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00406355
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00409653
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00402ce9
test bl, bl
je 0x4098bd
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004096e7
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x4098b3
mov byte [ebp - 0x17c], 0
push dword [ebp - 0x17c]
push eax
call fcn.00409578
lea ecx, [ebp - 0x28]
call fcn.00402ce9
jmp 0x4098c9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.004063c6
push dword [ebp - 0x176]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea ecx, [ebp - 0x13]
call fcn.00402e60
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00402e84
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00409475
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x409968
lea eax, [ebp - 0x40]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x180]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 0x31]
push eax
push dword [ebp - 0x3c]
call fcn.004095d1
test al, al
je 0x409963
mov dword [ebp - 0x17c], 0xbb8
jmp 0x40994c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004093c6
pop ecx
test al, al
je 0x409963
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.004093c6
pop ecx
test al, al
jne 0x409935
push dword [ebp - 0x40]
call esi
lea ecx, [ebp - 0x70]
call fcn.00402ce9
lea ecx, [ebp - 0x58]
call fcn.00402ce9
push dword [ebp - 0x3c]
call esi
call fcn.0041682f
ret
Function at 0x411b81
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x43bdaf
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x450020]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x18], edx
mov esi, ecx
mov dword [ebp + 0x1c], esi

Function at 0x411dc2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x450020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x411e3e
movd xmm0, dword [ebp - 0x14]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x44a620]
jb 0x411e27
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x10]
push 1
push 0
push 0
add eax, 0xffffec78
push eax
push 0xffffec78
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ecx
push esi
call fcn.00411e4c
test al, al
je 0x411e3e
mov eax, dword [0x452ac4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415fe8
leave
ret
Function at 0x41488c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4148ad
jl 0x4148a4
test edi, edi
jne 0x4148ad
xor eax, eax
xor edx, edx
jmp 0x41496e
cmp dword [ebx + 0x38], 0
je 0x4148c2
push eax
push edi
push dword [ebp + 8]
call fcn.00414974
jmp 0x41496e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x414909
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x414909
cmp eax, edi
jb 0x4148e3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00417bf0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x41490f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x414963
mov ecx, ebx
call fcn.00414114
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x41494e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042404f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x414963
jmp 0x414921
test edx, edx
je 0x414963
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042404f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x416dda
Capabilities:
Parse pe header

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

Function at 0x428b2c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441b88
push 0x441b80
push str.FlsAlloc
push 0x1f
call fcn.00428957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428b60
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d2d8]
call esi
jmp 0x428b66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x428baa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441b98
push 0x441b90
push str.FlsGetValue
push 0x21
call fcn.00428957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428be1
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d2d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x428be9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441ba0
push 0x441b98
push str.FlsSetValue
push 0x22
call fcn.00428957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428c23
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43d2d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d957
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00417220
mov eax, dword [0x450020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042b36e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d999
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42daf5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00438c80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x451f40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042e954
mov ecx, dword [esi*4 + 0x451f40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42daee
cmp eax, dword [ecx + edi + 0x24]
jne 0x42daee
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42daee
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e954
add esp, 0x14
test edx, edx
jl 0x42daee
jg 0x42da64
test eax, eax
jb 0x42daee
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42daee
jl 0x42da7e
cmp dword [ebp - 0x1008], eax
ja 0x42daee
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42da9c
test ebx, ebx
je 0x42dad5
cmp ecx, edi
jae 0x42dad5
mov al, byte [ecx]
cmp al, 0xd
jne 0x42dab6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42dac2
cmp byte [ecx + 1], 0xa
jne 0x42dac2
inc ecx
jmp 0x42dac2
movzx eax, al
movsx eax, byte [eax + 0x4502c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42da9c
cmp edx, ebx
jne 0x42da9c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42daf3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415fe8
leave
ret
Function at 0x42ddec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x451f40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42de2c
cmp byte [ebx], 0xa
jne 0x42de2c
or byte [edi + eax + 0x28], 4
jmp 0x42de31
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42df30
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42df13
inc eax
cmp dl, 0xd
je 0x42de5d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42de83
cmp eax, ecx
jae 0x42de91
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42de45
jmp 0x42df30
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42df0e
cmp dword [ebp - 0x10], 0
je 0x42df0e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x451f40]
test byte [eax + edi + 0x28], 0x48
je 0x42dee8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42ded3
mov byte [esi], dl
jmp 0x42dee4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42df30
cmp byte [ebp - 1], 0xa
jne 0x42def7
cmp esi, ebx
jne 0x42def7
mov byte [esi], 0xa
jmp 0x42df2f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e972
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42df30
mov byte [esi], 0xd
jmp 0x42df2f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x451f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42df2d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42df30
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret