joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5ea23fa2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x54b8039a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402550
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
or edx, 1
imul eax
sbb esi, 0xc6
imul edi
sbb edx, 0xa8
rcl esi, 0xa8
neg edx
rcl esi, 0x75
neg edi
or esi, 0x77
inc edx
and eax, 0x90
imul edx
and edi, 0xf7
neg ebx
or eax, 0xde
bswap esi
bswap ebx
inc edi
neg esi
sbb esi, 0xe2
sub edi, 0x37
sub edi, 0xe9
sbb esi, 0xae
rcr eax, 0x43
or edx, 0xb5
neg eax
neg eax
mov eax, 0x17
rcl edx, 0x7d
rcr eax, 0xb
rcr edi, 0xad
neg edx
neg edx
dec ebx
not esi
and edx, 0x5b
neg ebx
inc eax
mov edx, 0xa
rol eax, 0x3f
rcr edx, 0x8a
neg esi
neg edi
mov edx, 0xbd
neg eax
sbb esi, 0x2d
neg ebx
rcl eax, 0x97
inc esi
xor ecx, ecx
xor edi, edi
or edi, 0x3b
not ebx
sub esi, 0xde
or ebx, 0xed
not edx
ror ebx, 0xa1
sub edi, 0x84
ror ebx, 0xcd
inc edi
bswap edx
sub edx, 0x7e
sbb eax, 0x83
imul ebx
dec edi
mov eax, 0x43
dec edi
rcl eax, 0x2d
neg edx
inc ebx
ror eax, 0xb6
mov edi, 0x8d
sbb eax, 0
imul esi
dec ebx
imul edx
add edx, 0x92
sbb eax, 0x87
add esi, 0x58
sbb ebx, 0xf3
not ebx
rol edx, 0x32
not edx
rcr edi, 0xf8
add edx, 0x34
rcr edx, 0xe8
imul esi
mov eax, 0xbb
and edi, 0x5c
rcr ebx, 0x19
sbb esi, 0x7a
dec eax
imul ebx
imul esi
sub edx, 0x1f
mov eax, 8
neg edi
bswap esi
bswap edi
imul esi
bswap ebx
mov ecx, dword [ebp + 0xc]
or eax, 0x81
neg edx
rcl eax, 0x52
not edi
ror edi, 0x60
rcl ebx, 0x3a
or eax, 0x4d
not ebx
add esi, 0x54
sbb eax, 0x89
rcr edi, 0x9d
rol eax, 0x3e
inc ebx
sub edx, 0x92
not edi
not esi
bswap edi
rcl eax, 0xb1
rcl esi, 0x33
sbb edx, 0x36
mov edi, 0x2b
inc esi
add ebx, 0x77
bswap edi
sub edx, 0x49
ror edi, 0x76
dec ebx
or esi, 0xf3
neg edi
imul ebx
dec edi
rol eax, 0x1a
dec edx
imul edx
sbb eax, 0x34
sbb eax, 0x7c
rcl edi, 0x14
imul edx
dec esi
ror esi, 0x3e
sub eax, 0xd2
sbb eax, 0xea
dec edi
rcl edx, 0x1a
rol eax, 0x59
imul edi
ror eax, 0xa0
imul edx
add edx, 0x4e
rcr esi, 0xf9
mov edi, dword [ebp + 8]
mov esi, ebx
mov ebx, ebx
xor eax, eax
not byte [edi]
mov esi, ebx
xor eax, eax
xor ebx, ebx
mov ebx, eax
mov esi, esi
xor ebx, eax
xor ebx, eax
mov ebx, ebx
mov ebx, eax
add byte [edi], 0x54
mov esi, esi
mov ebx, eax
mov eax, esi
mov eax, eax
xor esi, ebx
mov ebx, eax
xor ebx, eax
xor eax, esi
mov esi, ebx
sub byte [edi], 0x29
mov eax, esi
xor esi, eax
mov eax, esi
xor esi, esi
mov ebx, eax
mov ebx, esi
mov esi, eax
mov esi, ebx
mov esi, esi
imul byte [edi]
inc edi
loop 0x40271d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40568a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467a94]
jne 0x405694
repz ret
jmp fcn.0040a065
Function at 0x40b86d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040862f
and dword [ebp - 4], 0
cmp dword [0x469014], 0
mov ebx, eax
jne 0x40b91e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b9cf
push eax
call fcn.004085bd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x469014], eax
call esi
push eax
call fcn.004085bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x469018], eax
call esi
push eax
call fcn.004085bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46901c], eax
call esi
push eax
call fcn.004085bd
pop ecx
mov dword [0x469024], eax
test eax, eax
je 0x40b91e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004085bd
pop ecx
mov dword [0x469020], eax
mov eax, dword [0x469020]
cmp eax, ebx
je 0x40b976
cmp dword [0x469024], ebx
je 0x40b976
push eax
call fcn.00408638
push dword [0x469024]
mov esi, eax
call fcn.00408638
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b976
test edi, edi
je 0x40b976
call esi
test eax, eax
je 0x40b96d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b96d
test byte [ebp - 0xc], 1
jne 0x40b976
or dword [ebp + 0x10], 0x200000
jmp 0x40b9af
mov eax, dword [0x469018]
cmp eax, ebx
je 0x40b9af
push eax
call fcn.00408638
pop ecx
test eax, eax
je 0x40b9af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9af
mov eax, dword [0x46901c]
cmp eax, ebx
je 0x40b9af
push eax
call fcn.00408638
pop ecx
test eax, eax
je 0x40b9af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x469014]
call fcn.00408638
pop ecx
test eax, eax
je 0x40b9cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403db0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
push esi
push edi
lea edi, [ebp - 0x2e0]
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x459418]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00405aa0
add esp, 0xc
mov dword [ebp - 0x4c], 0x44
push 0x10
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.00405aa0
add esp, 0xc
push str.Conquer.exe_blacknull
lea ecx, [ebp - 0x88]
call fcn.00401910
mov eax, dword [0x447450]
push eax
push 0x447528
lea ecx, [ebp - 0x88]
call fcn.00403630
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cmp eax, dword [0x447450]
je 0x403e6b
mov eax, dword [ebp - 0x94]
push eax
push 0
lea ecx, [ebp - 0x2cc]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00403ca0
push eax
lea ecx, [ebp - 0x88]
call fcn.00402d80
lea ecx, [ebp - 0x2cc]
call fcn.00401c70
lea ecx, [ebp - 0x88]
call fcn.00403c70
add eax, 1
push eax
lea ecx, [ebp - 0x88]
call fcn.004030e0
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00405450
add esp, 0xc
mov eax, dword [ebp - 0x94]
cmp eax, dword [0x447450]
jne 0x403eaf
mov dword [ebp - 0x2e0], 0
jmp 0x403ebb
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x2e0], ecx
mov esi, esp
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x2e0]
push ecx
push 0
push 0
push 0
push 0
push 0
push str.Conquer.exe_blacknull
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp esi, esp
call fcn.00406390
test eax, eax
jne 0x403f28
mov esi, esp
push 0
push str.Rage
push str.Sorry___Will_Not_Starting_Because_You_Trying_To_Edit_Client_FIlES_Please_Dont_Try
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00406390
mov dword [ebp - 0x2d8], 0
lea ecx, [ebp - 0x88]
call fcn.00401c70
mov eax, dword [ebp - 0x2d8]
jmp 0x403f44
push 0x44758c
mov eax, dword [ebp - 0x64]
push eax
call fcn.00402170
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00401c70
push edx
mov ecx, ebp
push eax
lea edx, [0x403f78]
call fcn.00406330
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063c0
add esp, 0x2e0
cmp ebp, esp
call fcn.00406390
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x2f22008], 0x8088405
inc edx
mov dword [ebx + 0x2f22008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40ddac
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x40ddbf
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x40ddce
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret
Function at 0x42640c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x426412
ret

Function at 0x42b724
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x42b737
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x42b746
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x42d464
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x42d473
or edx, 0x200
test eax, 0x20000000
je 0x42d4a7
test eax, 0x40000000
je 0x42d492
test eax, 0x80000000
je 0x42d48d
or edx, 0x40
jmp 0x42d4ce
or edx, 0x20
jmp 0x42d4ce
test eax, 0x80000000
je 0x42d4a1
or edx, 0x80
jmp 0x42d4ce
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x42d4bf
test eax, 0x80000000
je 0x42d4ba
or edx, 4
jmp 0x42d4ce
or edx, 2
jmp 0x42d4ce
test eax, 0x80000000
je 0x42d4cb
or edx, 8
jmp 0x42d4ce
or edx, 1
mov eax, edx
ret
Function at 0x4428ac
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
xor edx, edx
mov dword [esp], edx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call fcn.00406924
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4428e7
push 0
push 0x2f129e4
push 0x2f129e8
push 0
call fcn.00406e64
xor edx, edx
mov eax, ebp
call fcn.00444cdc
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
call fcn.00402a30
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0
mov edx, ebx
mov ecx, dword [esp + 0xc]
mov eax, ebp
call fcn.00444d48
test eax, eax
jne 0x44292a
push 0
push 0x2f129e4
push 0x2f129ec
push 0
call fcn.00406e64
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
call fcn.00402a30
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x50]
mov eax, dword [esp]
call fcn.00406f30
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x54]
push eax
push ebx
mov eax, dword [esp + 8]
push eax
call fcn.00443ab4
mov eax, dword [esp + 0x10]
mov si, word [eax + 6]
dec esi
test si, si
jb 0x4429c6
inc esi
xor edi, edi
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x3c]
mov eax, ebx
add edx, eax
add edx, 0xf8
movzx ecx, di
shl ecx, 3
lea ecx, [ecx + ecx*4]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x14]
add edx, eax
push edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 8]
push eax
call fcn.00443ab4
inc edi
dec si
jne 0x44297d
mov edx, dword [esp + 4]
mov eax, ebx
call fcn.00402a60
mov eax, ebp
call fcn.0044405c
mov eax, dword [esp]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x442a5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov dword [esp], edx
mov esi, eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [esi + 0x3c]
mov eax, esi
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add edx, 0x78
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x20]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x24]
add edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jb 0x442b46
inc ebx
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp edx, eax
jbe 0x442ae9
add dword [esp + 0x18], 4
inc eax
cmp edx, eax
ja 0x442adf
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp edx, eax
ja 0x442b04
mov ecx, dword [esp + 0xc]
add edx, dword [ecx + 4]
cmp eax, edx
jb 0x442b39
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
call fcn.00442798
mov ecx, eax
mov edx, dword [esp + 0x24]
xor eax, eax
call fcn.004427ac
cmp eax, dword [esp]
jne 0x442b39
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 4], eax
jmp 0x442b46
add dword [esp + 0x20], 2
add dword [esp + 0x1c], 4
dec ebx
jne 0x442aca
mov eax, dword [esp + 4]
add esp, 0x28
pop esi
pop ebx
ret
Function at 0x446944
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00404898
push eax
call fcn.0040691c
mov edi, eax
cmp edi, 0xffffffff
jne 0x446980
mov eax, edi
call fcn.0044405c
jmp 0x446aae
push 0
push 0
push 0
push 2
push 0
push edi
call fcn.0040692c
mov esi, eax
test esi, esi
jne 0x4469a9
mov eax, edi
call fcn.0044405c
mov eax, esi
call fcn.0044405c
jmp 0x446aae
push 0
push 0
xor ecx, ecx
mov edx, 4
mov eax, esi
call fcn.00443db0
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4469d7
mov eax, edi
call fcn.0044405c
mov eax, esi
call fcn.0044405c
jmp 0x446aae
mov eax, dword [esp]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x446a05
mov eax, edi
call fcn.0044405c
mov eax, esi
call fcn.0044405c
mov eax, dword [esp]
push eax
call fcn.00406b94
jmp 0x446aae
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
add eax, dword [edx + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
je 0x446a39
mov eax, edi
call fcn.0044405c
mov eax, esi
call fcn.0044405c
mov eax, dword [esp]
push eax
call fcn.00406b94
jmp 0x446aae
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
jne 0x446a95
mov eax, dword [esp + 8]
mov ax, word [eax + 0x18]
sub ax, 0x10b
je 0x446a5b
sub ax, 0x100
je 0x446a78
jmp 0x446a97
mov eax, dword [esp + 8]
mov ax, word [eax + 0x5c]
sub ax, 2
je 0x446a70
dec ax
je 0x446a74
jmp 0x446a97
mov bl, 2
jmp 0x446a97
mov bl, 3
jmp 0x446a97
mov eax, dword [esp + 8]
mov ax, word [eax + 0x5c]
sub ax, 2
je 0x446a8d
dec ax
je 0x446a91
jmp 0x446a97
mov bl, 4
jmp 0x446a97
mov bl, 5
jmp 0x446a97
mov bl, 1
mov eax, edi
call fcn.0044405c
mov eax, esi
call fcn.0044405c
mov eax, dword [esp]
push eax
call fcn.00406b94
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x44752c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebp, eax
mov eax, dword [esp]
call fcn.00404698
mov edi, eax
mov eax, dword [esp]
call fcn.00404698
mov esi, eax
test esi, esi
jle 0x447567
mov ebx, 1
mov eax, dword [esp]
movzx eax, byte [eax + ebx - 1]
xor edi, eax
inc ebx
dec esi
jne 0x447559
mov eax, dword [esp + 4]
mov edx, ebp
call fcn.00404410
mov eax, ebp
call fcn.00404698
mov esi, eax
test esi, esi
jle 0x44759d
mov ebx, 1
mov eax, dword [esp + 4]
call fcn.004048f0
mov edx, edi
xor dl, byte [ebp + ebx - 1]
not dl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x447584
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021ee
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073c7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f1b
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016ac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xda
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xdb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x94
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xe9
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6e
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xcb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb2
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xfe
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x36
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x23
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x91
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xfc
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x1a
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xa3
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xce
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6d
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x35
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x57
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x84
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x25
push ebp
push ebp
push ebp
call ebx
dec byte [esi + edi]
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x95
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x14
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x56
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xfb
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd7
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x59
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x50
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x100d1d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100dc088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100fc8f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1011458c]
test eax, eax
jne 0x100d1d52
xor esi, esi
jmp 0x100d1d5b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x100d1d9d
cmp dword [esi + 0x14], 0
jne 0x100d1ddf
cmp dword [esi + 0x10], 0
jne 0x100d1de5
push 0x100d0bb0
push 0x10114588
call fcn.100d1610
mov eax, dword [0x1011458c]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x100d1dcb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100d1dcb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x100d1e25
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x100d1e13
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x100d1de5
cmp dword [esi + 0x14], 0
je 0x100d1d77
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100d1e4a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x100d1e7b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100d1e7b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100d1e7b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x100d1e2f
jmp 0x100d1d71
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x402124
push str.shellcode2.bin
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4010d5
push esi
push 1
lea eax, [ebp - 0x800]
push 0x65b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
lea eax, [ebp - 0x800]
mov ecx, str.1234567
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4010b1
test dl, dl
je 0x4010ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4010b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x401091
xor ecx, ecx
jmp 0x4010b6
sbb ecx, ecx
or ecx, 1
test ecx, ecx
mov edx, str.wrong_n
mov eax, str.right_n
cmovne eax, edx
push eax
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret