joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0220
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00513710
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x4e0343
push ecx
lea ecx, [esi + 0x18]
call fcn.004ffa40
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x4e035a
push ecx
lea ecx, [esi + 0x24]
call fcn.004ff950
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ffb30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
cwde
add dword [esp + eax*8 + 0x4ff8fec2], 0xffffffaa
sbb dword [esi], ebp
pop ebp
rol ebx, 1
imul ebx, dword [edx], 0x71531b18
sbb edx, dword [ebx + 0x71]
sbb edx, dword [ebx + 0x71]
xor byte [edx], al
arpl word [ecx - 0x47f30b78], dx
mov ch, 0xac
imul eax, dword [ebx + 0x5897cbe4], 0xffffffba
mov bl, 0xc7
sub dword [ecx], edx
out dx, eax
ja 0x4ffb1f
leave
int1
mov cl, 0xc0
invalid

Function at 0x52efc4
Capabilities:
Encode data using xor

Disassembly:
lahf
xlatb
mov edx, 0x4262b38b
xchg esp, eax
xor eax, 0xa1c04bdf
sbb al, al
hlt
shl byte [ecx + 0x14f4c01a], 0x64
xor dword [edi], eax
jno 0x52efce
jns 0x52ef64
mov edi, 0x65cf102b
dec ebx
leave
pop ebx
mov bh, 0x99
add byte [edi - 0x60cbe76], 0x5e
cwde
pop es
rol byte [ebx + 0x3f60e261], 0xd7
or dword [esi + 0x5baff401], eax
inc ebp
sub eax, 0x5e15e340
shl dword [esi + ebx*2], 1
jnp 0x52ef64
cmp al, 0xdf
lahf
push ebx
mov edi, 0x8cd15f3a
mov ebp, 0x10b124f9
xor al, byte [esi - 0x48]
add byte [ebx - 0x5e], dh
fiadd dword [esp + ebp*4 - 0x1a]
mov bl, 0x4a
test eax, 0x935600ac
add byte [esi - 0x6d], dl
add byte [esi - 0x6d], dl
mov ch, 0x30
jge 0x52efb0
inc ebp
and al, 0xbb
cmp byte [eax], al
movsb byte es:[edi], byte [esi]
aas
mov ebx, 0x3fa40038
loopne 0x52ef6f
movsb byte es:[edi], byte [esi]
cmp al, byte [edi]
and ebp, dword [esi + 0x62496460]
push 0xdd6aa104
mov edx, 0xbd8ff0c4
invalid
Function at 0x538070
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf6040565
cwde
and eax, 0xc1a9cb10
test al, 0x2b
pop esi
movsd dword es:[edi], dword [esi]
or al, 0x8f
mov al, byte ss:[0xf6efb666]
popfd
xlatb
pushal
inc ebp
xor ecx, ebp
rcr esi, 0x29
cmp al, 0xd
je 0x538080
invalid
invalid

Function at 0x55c6c0
Capabilities:
Encode data using xor

Disassembly:
jo 0x55c6b1
in al, 0xb1
movsd dword es:[edi], dword [esi]
test eax, 0x5e817ce2
pop esi
out dx, eax
and byte [eax + 0x34], dh
invalid
mov ch, 0x21
insb byte es:[edi], dx
adc edi, ecx
add dword [ebx], edx
dec esi
or ah, byte [eax + 0x75]
xor dword [eax + 0x25b3b570], edi
mov bl, 0x25
mov bl, 0x25
js 0x55c738
push ss
sub eax, ebx
add bh, cl
cld
loopne 0x55c67c
xchg al, dl
jg 0x55c713
sbb al, 0x49
and al, ah
adc dword [esi], esp
pop esp
or eax, 0xdce1740a
inc ebx
xor al, 0x83
aad 0x27
mov dh, 0x49
movsb byte es:[edi], byte [esi]
mov al, byte [0xfa75ba9a]
hlt
stosb byte es:[edi], al
sbb esi, ebx
loop 0x55c761
xchg ecx, eax
cld
adc ah, ah
adc esp, dword [esi - 0x1f]
in al, 0x15
mov ebx, 0x88b386d5
loopne 0x55c6ca
add ebx, edx
add eax, 0x21d4c3e3
hlt
sahf
in al, 0x74
adc bh, dh
cmp eax, 0x5ef6f34c
or al, 0x4b
xor dword [esi], ecx
test al, 0xa5
or dword [ecx + 0x6013e778], edx
movsb byte es:[edi], byte [esi]
inc esi
xchg esi, eax
mov ah, 0x20
add al, 0xf1
pop ecx
mov dword [edi - 0x13], edi
jb 0x55c744
jl 0x55c7ae
pushal
dec ebx
mov dl, 0xbb
mov ecx, 0xd59b6395
sbb ax, 0x23f5
and esi, ebp
mov ebx, 0x9b6395b9
aad 0x66
sbb eax, 0xf52323f5
inc ecx
nop
invalid
and bl, 0xd6
inc ebp
push ss
and byte [eax + edx*4], bl
invalid
Function at 0x572f60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005a6450
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x573083
push ecx
lea ecx, [esi + 0x18]
call fcn.00592780
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x57309a
push ecx
lea ecx, [esi + 0x24]
call fcn.00592690
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5a6580
Capabilities:
Encode data using xor

Disassembly:
enter 0xdc7, 0xffffffffffffffba
cmp bl, ah
sub bl, al
fld xword [ecx - 0x57]
push edi
lodsb al, byte [esi]
cmp ebx, dword [edi]
and ebx, eax
xor ecx, eax
mov eax, 0xd117ec5a
call [esp + esi*4 - 0x3497535d]
adc al, 0x2d
add al, 0xe3
cmp byte [esi + 0x7c], ah
xchg edi, eax
in eax, dx
cmp eax, 0x917f235c
stc
push edi
popfd
jnp 0x5a6575
mov ebx, 0x564253fb
clc
pop es
fdivr st(7), st(0)
mov eax, 0x588349b3
lea ebx, [esp + ecx*4]
sti
lahf
jmp 0x5a65b2
mov bl, 0x49
sbb dword [eax - 0x73], 0x1c
invalid

Function at 0x5efae0
Capabilities:
Encode data using xor

Disassembly:
call 0x75139105
sbb ah, al
out dx, al
sub eax, 0xa002f7e8
xchg dword [edi], edi
pop ebx
adc bh, byte [edi]
adc ecx, dword [edx - 0x6c]
lodsd eax, dword [esi]
sub dl, byte [ecx + edx*2 + 0x317e3446]
fdiv qword [ecx + esi*4 + 0x6c9c05c8]
std
arpl word [eax - 0x1fb498cd], dx
add byte [ecx], dh
push esp
aad 0x26
mov cl, 0xc8
add eax, 0x63fd6c9c
nop
xor esp, dword [edi + 0x4b]
loopne 0x5efb0c
xor dword [ebp + edx*8 + 0x26], edx
test eax, 0x39dc46dc
push esp
lodsb al, byte [esi]
and al, 0x6b
or ebp, edx
rol ebx, 1
sub eax, dword [ebp - 0x13]
xchg ecx, eax
xchg esi, eax
sahf
add cl, byte [ecx + 0x4d091aa8]
in eax, dx
fbstp tbyte [edi]
mov edi, 0x623d35dc
jno 0x5efaff
inc ebx
cmp eax, ebp
adc byte [ecx], 0xec
xchg ebp, eax
cmc
insd dword es:[edi], dx
aad 0x31
invalid
Function at 0x627af0
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x3e8ad544
mov esp, 0x897e993c
sti
movsd dword es:[edi], dword [esi]
stosb byte es:[edi], al
imul dword [ebx + ebx*4 - 0x6e]
or byte [esi - 0x193fe459], cl
xor byte [0x827b53f0], dh
shl dh, 0x30
xor eax, 0x827b53f0
cdq
stosd dword es:[edi], eax
enter 0x2ce8, 0x4b
pop esi
cmp bh, byte [ebx + 0x38]
scasb al, byte es:[edi]
inc ebx
sub al, 0x16
jl 0x627a79
dec edi
wait
push ss
nop
in al, 0x64
pop ebx
aad 0xfe
stosb byte es:[edi], al
int1
jecxz 0x627a8b
cli
xchg edx, eax
and dword [ebx - 0x5f6b170c], ecx
cdq
enter 0x4d08, 0xffffffffffffffa8
mov dh, 0x60
jg 0x627b04
std
jno 0x627a9b
sti
iretd
push ecx
in al, 0x74
je 0x627ab2
loope 0x627ada
jno 0x627a64
mov esp, esp
push cs
and eax, 0x5db05ea5
mov esp, dword [ebx + 0x7e]
cwde
push edx
retf
scasb al, byte es:[edi]
jbe 0x627aab
out 0xf1, eax
test al, 0x90
pushfd
out dx, eax
lahf
jns 0x627b54
lodsd eax, dword [esi]
mov eax, 0xc06ab5c7
fldcw word [eax]
jg 0x627b58
push ss
cmp al, 0x40
sbb byte [edx - 0x4a], 0xdf
lodsb al, byte [esi]
jns 0x627b64
mov eax, 0x7a19188b
cmp dl, byte [ebx + ebx*4 - 0x7307785e]
loop 0x627ad5
invalid
jno 0x627b79
ret
cmp ecx, 0x55
loope 0x627ba6
lds ebx, [esi - 0x10]
and eax, 0x47a7f458
invalid
inc edi
mov al, 0x54
adc eax, dword [ebx + 0x38362c01]
jle 0x627bbb
invalid
retf
pop ebx
invalid
fbld tbyte [edx - 0x2152a74]
paddw mm1, qword [eax + 0x2a]
out dx, eax
xchg esi, eax
jae 0x627b5f
mov ecx, 0xc3ca485a
mov al, 0xb8
lahf
cwde
invalid

Function at 0x64d15d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654338
cmp edx, dword [eax]
je 0x64d17f
add eax, 8
inc ecx
cmp eax, 0x6543c8
jl 0x64d170
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x654338]
jne 0x64d2ad
mov eax, dword [0xa57c90]
cmp eax, 1
je 0x64d287
test eax, eax
jne 0x64d1b0
cmp dword [0x654264], 1
je 0x64d287
cmp edx, 0xfc
je 0x64d2ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d1e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064db40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064dfd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d22a
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 8]
lea esi, [esi + 0x65433c]
push 0
push eax
push dword [esi]
call fcn.0064dfd0
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]
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x409d2f
pop dword [ebp - 0x44]
mov eax, 0x797808f
sub eax, 0x756e360
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x39246
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5349367e
sub ecx, 0x5348eebd
mov ebx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x44]
mov edx, 0x10ebd33e
add edx, 0x8b1f65de
xor dword [ebp - 0x10], edx
mov edi, dword [esi]
add edi, edx
sub dword [ebp - 0x24], ebx
mov dword [ebx], edi
sub dword [ebp - 0x1c], 0xb1fadc8d
add ebx, 0xb61bf4b9
add ebx, 0x49e40b4b
add esi, 0xb10e72ea
sub esi, 0xb10e72e6
loop 0x409d83
add eax, 0x111d7
mov ebx, eax
add eax, 5
mov ecx, 0xf0824d9
sub ecx, 0xec824d9
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1002c240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002c24f
pop dword [ebp - 0x1c]
mov eax, 0x85e22f48
sub eax, 0x75df6cf9
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xf91e500a
sub dword [ebp - 0x2c], 0xaacc0abf
mov dword [ebp - 0x28], 0xfee93990
add dword [ebp - 0x28], 0x334a12b5
mov dword [ebp - 0x24], 0xf9a7b76d
sub dword [ebp - 0x24], 0xad5b733f
mov dword [ebp - 0x20], 0xd5594206
add dword [ebp - 0x20], 0x2aa6bdfa
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xcebd7152
sub dword [ebp - 0x2c], 0x5a4b07fc
mov dword [ebp - 0x28], 0xf165a322
add dword [ebp - 0x28], 0x5006be53
mov dword [ebp - 0x24], 0x8241d3e5
add dword [ebp - 0x24], 0xe12d9887
mov dword [ebp - 0x20], 0xb1ef0d3c
sub dword [ebp - 0x20], 0xb1ef0d3c
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xf18ea46f
add eax, 0x1e757bdd
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x45eb5
push 0
call eax
mov ecx, 0x42f1
mov edi, eax
mov esi, 0x44671410
sub esi, 0x34619610
add esi, dword [ebp - 0x1c]
mov ebx, 0xf743ebf8
sub ebx, 0xf4a65952
sub dword [ebp - 4], edx
mov edx, dword [esi]
sub edx, ebx
xor dword [ebp - 8], 0xa141a55b
mov dword [edi], edx
sub dword [ebp - 0x18], ebx
add edi, 0xfd3c0a02
sub edi, 0xfd3c09fe
add esi, 4
loop 0x1002c366
add eax, 0xfe97
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002c240
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1002c240
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002c240
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x100113e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100113f0
pop dword [ebp - 0x38]
mov eax, 0x819d7368
sub eax, 0x719c5f78
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc058690
add dword [ebp - 0x48], 0x424cbebb
mov dword [ebp - 0x44], 0xbe1aa2cc
sub dword [ebp - 0x44], 0x8be75687
mov dword [ebp - 0x40], 0x22d748de
sub dword [ebp - 0x40], 0xd68b04b0
mov dword [ebp - 0x3c], 0xc3583b29
sub dword [ebp - 0x3c], 0xc3583b29
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x829ffc20
sub dword [ebp - 0x48], 0xe2d92ca
mov dword [ebp - 0x44], 0x16954b85
sub dword [ebp - 0x44], 0xd528ea10
mov dword [ebp - 0x40], 0xa139d7d3
add dword [ebp - 0x40], 0xc2359499
mov dword [ebp - 0x3c], 0x6817892e
sub dword [ebp - 0x3c], 0x6817892e
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x78341457
add eax, 0x97cd1a05
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x328aa
push 0
call eax
mov ecx, 0x9217156c
add ecx, 0x6de922b8
mov edx, eax
mov esi, 0x10017a00
add esi, dword [ebp - 0x38]
mov ebx, 0xb146bfbe
sub ebx, 0x4b0b4cf9
mov edi, dword [esi]
xor dword [ebp - 0x28], edx
add edi, ebx
add dword [ebp - 0x18], 0xc2a12920
mov dword [edx], edi
sub dword [ebp - 8], ecx
add edx, 0x3581a0e8
sub edx, 0x3581a0e4
add esi, 0x39bb8344
sub esi, 0x39bb8340
loop 0x10011507
add eax, 0x6afb7bc1
sub eax, 0x6afaa85e
mov ebx, eax
add eax, 0x6be6b344
sub eax, 0x6be6b33f
mov ecx, sym.clearkey.dll_Ordinal_0
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402a28
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a65
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a85
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f68
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4032a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5da008], 0x8088405
inc edx
mov dword [ebx + 0x5da008], edx
fld qword [ebx + 0x5da06c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403cd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5da024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d50
xor eax, eax
push ebp
push 0x403d49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5da024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5da024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60a04c], 0
je 0x404bbd
cmp word [0x60a220], 0xd7b2
jne 0x404b85
cmp dword [0x60a228], 0
jbe 0x404b85
mov eax, 0x60a21c
call dword [0x60a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5da0a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404be4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5da034], 0
jne 0x404bd9
push 0
push 0x5da0a0
push 0x5da0a8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret